forked from wolfSSL/wolfssl
Logical error fix.
This commit is contained in:
@ -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);
|
||||
|
Reference in New Issue
Block a user