diff options
Diffstat (limited to 'providers/implementations/ciphers/cipher_seed.c')
-rw-r--r-- | providers/implementations/ciphers/cipher_seed.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/providers/implementations/ciphers/cipher_seed.c b/providers/implementations/ciphers/cipher_seed.c index bae6a8e530ba..3644cb5e2252 100644 --- a/providers/implementations/ciphers/cipher_seed.c +++ b/providers/implementations/ciphers/cipher_seed.c @@ -39,10 +39,8 @@ static void *seed_dupctx(void *ctx) return NULL; ret = OPENSSL_malloc(sizeof(*ret)); - if (ret == NULL) { - ERR_raise(ERR_LIB_PROV, ERR_R_MALLOC_FAILURE); + if (ret == NULL) return NULL; - } *ret = *in; return ret; |