dh_check.c: check BN_CTX_get's return value.

(cherry picked from commit 53e5161231854d64fd89e993944609a329a92db4)
This commit is contained in:
Andy Polyakov 2014-03-06 14:19:37 +01:00
parent 430c5ca02e
commit fe69e6be6e

View File

@ -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;