Skip to content

Commit 9c1b8cf

Browse files
committed
wc_rng_bank_init: fall through on size error
1 parent c417a1c commit 9c1b8cf

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

wolfcrypt/src/rng_bank.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ WOLFSSL_API int wc_rng_bank_init(
5252

5353
#ifdef WC_RNG_BANK_STATIC
5454
if (n_rngs > WC_RNG_BANK_STATIC_SIZE)
55-
return BAD_LENGTH_E;
55+
ret = BAD_LENGTH_E;
5656
#else
5757
ctx->rngs = (struct wc_rng_bank_inst *)
5858
XMALLOC(sizeof(*ctx->rngs) * (size_t)n_rngs,

0 commit comments

Comments
 (0)