Skip to content

Commit f21a763

Browse files
return out of test function if failing RNG init
1 parent 18150a1 commit f21a763

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

wolfcrypt/test/test.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -35108,7 +35108,7 @@ WOLFSSL_TEST_SUBROUTINE wc_test_ret_t curve25519_test(void)
3510835108
ret = wc_InitRng(&rng);
3510935109
#endif
3511035110
if (ret != 0)
35111-
ERROR_OUT(WC_TEST_RET_ENC_EC(ret), cleanup);
35111+
return WC_TEST_RET_ENC_EC(ret);
3511235112

3511335113
#if defined(WOLFSSL_SMALL_STACK) && !defined(WOLFSSL_NO_MALLOC)
3511435114
userA = wc_curve25519_new(HEAP_HINT, devId, &ret);

0 commit comments

Comments
 (0)