mirror of
https://github.com/openssl/openssl.git
synced 2024-12-17 05:53:49 +08:00
Return error if DH_new() fails (Coverity ID 150).
This commit is contained in:
parent
071920d9f6
commit
19d300d07c
@ -51,6 +51,8 @@ static int make_cp_exchange_key(BIGNUM *priv_key,EVP_PKEY *pubk, unsigned char *
|
||||
gost_hash_ctx hash_ctx;
|
||||
DH *dh = DH_new();
|
||||
|
||||
if (!dh)
|
||||
return 0;
|
||||
memset(dh_key,0,128);
|
||||
dh->g = BN_dup(pubk->pkey.dsa->g);
|
||||
dh->p = BN_dup(pubk->pkey.dsa->p);
|
||||
|
Loading…
Reference in New Issue
Block a user