aboutsummaryrefslogtreecommitdiffstats
path: root/crypto/bn/bntest.c
diff options
context:
space:
mode:
authorNils Larsch <nils@openssl.org>2006-03-18 14:27:41 +0000
committerNils Larsch <nils@openssl.org>2006-03-18 14:27:41 +0000
commitb4e88ccb2875b414c3882759a1f1c6a4a07df389 (patch)
tree414529d2ef4e94a285a19a996db7e4301a8abe6c /crypto/bn/bntest.c
parentd916ba1ba176adae488f148818eafc4e8c1a38ca (diff)
downloadopenssl-b4e88ccb2875b414c3882759a1f1c6a4a07df389.tar.gz
ensure the pointer is valid before using it
Diffstat (limited to 'crypto/bn/bntest.c')
-rw-r--r--crypto/bn/bntest.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/crypto/bn/bntest.c b/crypto/bn/bntest.c
index b79685ee42..5a3c3d1d2e 100644
--- a/crypto/bn/bntest.c
+++ b/crypto/bn/bntest.c
@@ -732,6 +732,8 @@ int test_mont(BIO *bp, BN_CTX *ctx)
BN_init(&n);
mont=BN_MONT_CTX_new();
+ if (mont == NULL)
+ return 0;
BN_bntest_rand(&a,100,0,0); /**/
BN_bntest_rand(&b,100,0,0); /**/