From f21a763ae99ba1057df945a896eeff9ec14454c7 Mon Sep 17 00:00:00 2001 From: JacobBarthelmeh Date: Tue, 22 Oct 2024 14:22:46 -0600 Subject: [PATCH] return out of test function if failing RNG init --- wolfcrypt/test/test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wolfcrypt/test/test.c b/wolfcrypt/test/test.c index 24c0bfc06c..b00cfa00c2 100644 --- a/wolfcrypt/test/test.c +++ b/wolfcrypt/test/test.c @@ -35108,7 +35108,7 @@ WOLFSSL_TEST_SUBROUTINE wc_test_ret_t curve25519_test(void) ret = wc_InitRng(&rng); #endif if (ret != 0) - ERROR_OUT(WC_TEST_RET_ENC_EC(ret), cleanup); + return WC_TEST_RET_ENC_EC(ret); #if defined(WOLFSSL_SMALL_STACK) && !defined(WOLFSSL_NO_MALLOC) userA = wc_curve25519_new(HEAP_HINT, devId, &ret);