From 53e5161231854d64fd89e993944609a329a92db4 Mon Sep 17 00:00:00 2001 From: Andy Polyakov Date: Thu, 6 Mar 2014 14:19:37 +0100 Subject: [PATCH] dh_check.c: check BN_CTX_get's return value. --- crypto/dh/dh_check.c | 1 + 1 file changed, 1 insertion(+) 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; -- 2.40.0