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:19:37 +0100 |
commit | 53e5161231854d64fd89e993944609a329a92db4 (patch) | |
tree | 66fbcc04b910d929db83fafa19de4be5fe06ce0a /crypto/dh/dh_check.c | |
parent | 687403fb2486eec0502ccb36689d3f57e0a173aa (diff) |
dh_check.c: check BN_CTX_get's return value.
Diffstat (limited to 'crypto/dh/dh_check.c')
-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; |