dh_check.c: check BN_CTX_get's return value.
authorAndy Polyakov <appro@openssl.org>
Thu, 6 Mar 2014 13:19:37 +0000 (14:19 +0100)
committerAndy Polyakov <appro@openssl.org>
Thu, 6 Mar 2014 13:19:37 +0000 (14:19 +0100)
crypto/dh/dh_check.c

index fa1df0e..9c4f613 100644 (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;