mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2026-07-06 18:10:50 +02:00
wc_rng_bank_init: fall through on size error
This commit is contained in:
@@ -52,7 +52,7 @@ WOLFSSL_API int wc_rng_bank_init(
|
||||
|
||||
#ifdef WC_RNG_BANK_STATIC
|
||||
if (n_rngs > WC_RNG_BANK_STATIC_SIZE)
|
||||
return BAD_LENGTH_E;
|
||||
ret = BAD_LENGTH_E;
|
||||
#else
|
||||
ctx->rngs = (struct wc_rng_bank_inst *)
|
||||
XMALLOC(sizeof(*ctx->rngs) * (size_t)n_rngs,
|
||||
|
||||
Reference in New Issue
Block a user