Skip to content

Commit f738e44

Browse files
committed
wolfcrypt/test/test.c: in random_bank_test(), fix position of a misplaced WC_DRBG_BANKREF gate.
1 parent 9b5cbbc commit f738e44

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

wolfcrypt/test/test.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20192,10 +20192,10 @@ WOLFSSL_TEST_SUBROUTINE wc_test_ret_t random_bank_test(void)
2019220192
return WC_TEST_RET_ENC_EC(MEMORY_E));
2019320193
XMEMSET(bank, 0, sizeof(*bank));
2019420194

20195+
#ifdef WC_DRBG_BANKREF
2019520196
WC_ALLOC_VAR_EX(rng, WC_RNG, 1, HEAP_HINT,
2019620197
DYNAMIC_TYPE_TMP_BUFFER,
2019720198
return WC_TEST_RET_ENC_EC(MEMORY_E));
20198-
#ifdef WC_DRBG_BANKREF
2019920199
XMEMSET(rng, 0, sizeof(*rng));
2020020200
#endif
2020120201

0 commit comments

Comments
 (0)