projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Accept NULL in *_free.
[openssl.git]
/
crypto
/
bn
/
bn_recp.c
diff --git
a/crypto/bn/bn_recp.c
b/crypto/bn/bn_recp.c
index 97ca857ed1b2463428b1504c79e248ecb1d65d5a..3ace566b552e4dc88168b5a55f25533526a0f114 100644
(file)
--- 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)