diff options
author | Ben Laurie <ben@openssl.org> | 1999-01-07 19:15:59 +0000 |
---|---|---|
committer | Ben Laurie <ben@openssl.org> | 1999-01-07 19:15:59 +0000 |
commit | e03ddfae7ea7c27193d3f7c0eaa1d01704647d77 (patch) | |
tree | 7cf2e8444b222a3a52c4735e0415916bb81c4494 /crypto/bn/bn_recp.c | |
parent | 6fa89f94c4452be54577eb071891d77c9e2abe16 (diff) |
Accept NULL in *_free.
Diffstat (limited to 'crypto/bn/bn_recp.c')
-rw-r--r-- | crypto/bn/bn_recp.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/crypto/bn/bn_recp.c b/crypto/bn/bn_recp.c index 97ca857ed1..3ace566b55 100644 --- a/crypto/bn/bn_recp.c +++ b/crypto/bn/bn_recp.c @@ -84,6 +84,9 @@ BN_RECP_CTX *BN_RECP_CTX_new() void BN_RECP_CTX_free(recp) BN_RECP_CTX *recp; { + if(recp == NULL) + return; + BN_free(&(recp->N)); BN_free(&(recp->Nr)); if (recp->flags & BN_FLG_MALLOCED) |