diff options
-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; |