From e345471b21cf95cc4e36e3b3c22b937e81654eb2 Mon Sep 17 00:00:00 2001 From: jrblixt Date: Fri, 26 May 2017 13:27:27 -0600 Subject: [PATCH] Logical error fix. --- tests/api.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/api.c b/tests/api.c index 6b7787971..f5a3f5186 100644 --- a/tests/api.c +++ b/tests/api.c @@ -3770,6 +3770,8 @@ static int test_wc_Des3_SetIV (void) ret = wc_Des3_SetIV(NULL, iv); if (ret == BAD_FUNC_ARG) { ret = wc_Des3_SetIV(&des, NULL); + } else if (ret == 0) { + ret = SSL_FATAL_ERROR; } } @@ -3826,6 +3828,9 @@ static int test_wc_Des3_SetKey (void) /* Default case. Should return 0. */ ret = wc_Des3_SetKey(&des, key, NULL, DES_ENCRYPTION); } + if (ret == 0) { + ret = SSL_FATAL_ERROR; + } } /* END if ret != 0 */ printf(resultFmt, ret == 0 ? passed : failed);