Logical error fix.

This commit is contained in:
jrblixt
2017-05-26 13:27:27 -06:00
parent 1c0006882a
commit e345471b21

View File

@ -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);