Skip to content

Commit ba39aac

Browse files
committed
use ERROR_OUT when ret != 0 instead of returning
1 parent 133f53f commit ba39aac

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

wolfcrypt/test/test.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12512,7 +12512,7 @@ static wc_test_ret_t EVP_test(const WOLFSSL_EVP_CIPHER* type, const byte* key,
1251212512
ret = EVP_test(wolfSSL_EVP_aes_128_cfb8(), key1, iv, msg1, sizeof(msg1),
1251312513
cipher1, sizeof(cipher1));
1251412514
if (ret != 0) {
12515-
return ret;
12515+
ERROR_OUT(ret, out);
1251612516
}
1251712517
#endif
1251812518
ret = wc_AesSetKey(enc, key1, WC_AES_BLOCK_SIZE, iv, AES_ENCRYPTION);
@@ -12559,7 +12559,7 @@ static wc_test_ret_t EVP_test(const WOLFSSL_EVP_CIPHER* type, const byte* key,
1255912559
ret = EVP_test(wolfSSL_EVP_aes_192_cfb8(), key2, iv2, msg2, sizeof(msg2),
1256012560
cipher2, sizeof(msg2));
1256112561
if (ret != 0) {
12562-
return ret;
12562+
ERROR_OUT(ret, out);
1256312563
}
1256412564
#endif
1256512565

0 commit comments

Comments
 (0)