commit | e03ddfae7ea7c27193d3f7c0eaa1d01704647d77 | [log] [tgz] |
---|---|---|
author | Ben Laurie <ben@openssl.org> | Thu Jan 07 19:15:59 1999 +0000 |
committer | Ben Laurie <ben@openssl.org> | Thu Jan 07 19:15:59 1999 +0000 |
tree | 7cf2e8444b222a3a52c4735e0415916bb81c4494 | |
parent | 6fa89f94c4452be54577eb071891d77c9e2abe16 [diff] [blame] |
Accept NULL in *_free.
diff --git a/crypto/bn/bn_mont.c b/crypto/bn/bn_mont.c index a5640b5..2215dc3 100644 --- a/crypto/bn/bn_mont.c +++ b/crypto/bn/bn_mont.c
@@ -289,6 +289,9 @@ void BN_MONT_CTX_free(mont) BN_MONT_CTX *mont; { + if(mont == NULL) + return; + BN_free(&(mont->RR)); BN_free(&(mont->N)); BN_free(&(mont->Ni));