From ba39aacf20e1defd2f04cf977376e5d7e780c162 Mon Sep 17 00:00:00 2001 From: Ruby Martin Date: Mon, 9 Mar 2026 11:48:39 -0600 Subject: [PATCH] use ERROR_OUT when ret != 0 instead of returning --- wolfcrypt/test/test.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wolfcrypt/test/test.c b/wolfcrypt/test/test.c index efc67b3eb5..622cd1e718 100644 --- a/wolfcrypt/test/test.c +++ b/wolfcrypt/test/test.c @@ -12512,7 +12512,7 @@ EVP_TEST_END: ret = EVP_test(wolfSSL_EVP_aes_128_cfb8(), key1, iv, msg1, sizeof(msg1), cipher1, sizeof(cipher1)); if (ret != 0) { - return ret; + ERROR_OUT(ret, out); } #endif ret = wc_AesSetKey(enc, key1, WC_AES_BLOCK_SIZE, iv, AES_ENCRYPTION); @@ -12559,7 +12559,7 @@ EVP_TEST_END: ret = EVP_test(wolfSSL_EVP_aes_192_cfb8(), key2, iv2, msg2, sizeof(msg2), cipher2, sizeof(msg2)); if (ret != 0) { - return ret; + ERROR_OUT(ret, out); } #endif