mirror of
https://github.com/openssl/openssl.git
synced 2024-11-21 01:15:20 +08:00
PROV: Avoid NULL dereference in SHA3 dup call.
Reviewed-by: Richard Levitte <levitte@openssl.org> (Merged from https://github.com/openssl/openssl/pull/10487)
This commit is contained in:
parent
c676ff42b0
commit
a89befba60
@ -241,7 +241,8 @@ static void *keccak_dupctx(void *ctx)
|
||||
KECCAK1600_CTX *in = (KECCAK1600_CTX *)ctx;
|
||||
KECCAK1600_CTX *ret = OPENSSL_malloc(sizeof(*ret));
|
||||
|
||||
*ret = *in;
|
||||
if (ret != NULL)
|
||||
*ret = *in;
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user