From 3f655db3c5332905bdc3b8323d85f2ec6434389b Mon Sep 17 00:00:00 2001 From: Armin Novak Date: Thu, 22 Nov 2018 11:16:43 +0100 Subject: [PATCH] Fixed test_msrsc_incident_file_type1 return checks. --- libfreerdp/common/test/TestCommonAssistance.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/libfreerdp/common/test/TestCommonAssistance.c b/libfreerdp/common/test/TestCommonAssistance.c index a3e9223..48f6fea 100644 --- a/libfreerdp/common/test/TestCommonAssistance.c +++ b/libfreerdp/common/test/TestCommonAssistance.c @@ -79,7 +79,8 @@ static const char TEST_MSRC_INCIDENT_FILE_TYPE2[] = static BOOL test_msrsc_incident_file_type1(wLog* log) { - int status = -1; + BOOL rc = FALSE; + int status; char* pass = NULL; char* expertBlob = NULL; const char* EncryptedPassStub; @@ -111,11 +112,12 @@ static BOOL test_msrsc_incident_file_type1(wLog* log) EncryptedPassStubLength); expertBlob = freerdp_assistance_construct_expert_blob("Edgar Olougouna", pass); WLog_Print(log, WLOG_INFO, "expertBlob='%s'", expertBlob); + rc = TRUE; fail: freerdp_assistance_file_free(file); free(pass); free(expertBlob); - return status >= 0 ? TRUE : FALSE; + return rc; } static BOOL test_msrsc_incident_file_type2(wLog* log) -- 2.7.4