projects
/
oweals
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
071920d
)
Return error if DH_new() fails (Coverity ID 150).
author
Ben Laurie
<ben@openssl.org>
Sat, 13 Dec 2008 17:39:53 +0000
(17:39 +0000)
committer
Ben Laurie
<ben@openssl.org>
Sat, 13 Dec 2008 17:39:53 +0000
(17:39 +0000)
engines/ccgost/gost94_keyx.c
patch
|
blob
|
history
diff --git
a/engines/ccgost/gost94_keyx.c
b/engines/ccgost/gost94_keyx.c
index cae22ca0bcdfa5c9678d215600506032a8362bcc..37c4d656fff92f7ce9c8e7ea982c5c50f48a1b25 100644
(file)
--- a/
engines/ccgost/gost94_keyx.c
+++ b/
engines/ccgost/gost94_keyx.c
@@
-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);