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:
687403f
)
dh_check.c: check BN_CTX_get's return value.
author
Andy Polyakov
<appro@openssl.org>
Thu, 6 Mar 2014 13:19:37 +0000
(14:19 +0100)
committer
Andy Polyakov
<appro@openssl.org>
Thu, 6 Mar 2014 13:19:37 +0000
(14:19 +0100)
crypto/dh/dh_check.c
patch
|
blob
|
history
diff --git
a/crypto/dh/dh_check.c
b/crypto/dh/dh_check.c
index fa1df0efc05a10eeeab7257e43a5f3ad845040af..9c4f61329fc2652ea923c33a739c9f3f99ac6996 100644
(file)
--- a/
crypto/dh/dh_check.c
+++ b/
crypto/dh/dh_check.c
@@
-82,6
+82,7
@@
int DH_check(const DH *dh, int *ret)
if (ctx == NULL) goto err;
BN_CTX_start(ctx);
t1=BN_CTX_get(ctx);
+ if (t1 == NULL) goto err;
t2=BN_CTX_get(ctx);
if (t2 == NULL) goto err;