diff options
author | Andy Polyakov <appro@openssl.org> | 2014-03-06 14:19:37 +0100 |
---|---|---|
committer | Andy Polyakov <appro@openssl.org> | 2014-03-06 14:21:17 +0100 |
commit | fe69e6be6e551c04d9d6a186c7fee1e635313ca6 (patch) | |
tree | 5883fe2b4ca29d83c0aa5787f0629a51214aaf85 /crypto | |
parent | 430c5ca02e28a7e770e230b57f8563fd8087d25c (diff) |
dh_check.c: check BN_CTX_get's return value.
(cherry picked from commit 53e5161231854d64fd89e993944609a329a92db4)
Diffstat (limited to 'crypto')
-rw-r--r-- | crypto/dh/dh_check.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/crypto/dh/dh_check.c b/crypto/dh/dh_check.c index fa1df0efc0..9c4f61329f 100644 --- 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; |