diff options
author | Nils Larsch <nils@openssl.org> | 2006-03-18 15:27:41 +0100 |
---|---|---|
committer | Nils Larsch <nils@openssl.org> | 2006-03-18 15:27:41 +0100 |
commit | b4e88ccb2875b414c3882759a1f1c6a4a07df389 (patch) | |
tree | 414529d2ef4e94a285a19a996db7e4301a8abe6c /crypto/bn/bntest.c | |
parent | check if con != NULL before using it (diff) | |
download | openssl-b4e88ccb2875b414c3882759a1f1c6a4a07df389.tar.xz openssl-b4e88ccb2875b414c3882759a1f1c6a4a07df389.zip |
ensure the pointer is valid before using it
Diffstat (limited to 'crypto/bn/bntest.c')
-rw-r--r-- | crypto/bn/bntest.c | 2 |
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); /**/ |