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 fa1df0efc05a10eeeab7257e43a5f3ad845040af..9c4f61329fc2652ea923c33a739c9f3f99ac6996 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;