projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Allow NULL for some _free routines.
[openssl.git]
/
crypto
/
bn
/
bn_blind.c
diff --git
a/crypto/bn/bn_blind.c
b/crypto/bn/bn_blind.c
index 8bd61567e7daed7980c38db0253c6c4d77025abb..985d3ef32bb66a190647f6ba456b8168310fbcdd 100644
(file)
--- a/
crypto/bn/bn_blind.c
+++ b/
crypto/bn/bn_blind.c
@@
-80,6
+80,8
@@
BN_BLINDING *BN_BLINDING_new(const BIGNUM *A, const BIGNUM *Ai, BIGNUM *mod)
void BN_BLINDING_free(BN_BLINDING *r)
{
+ if (r == NULL)
+ return;
BN_free(r->A);
BN_free(r->Ai);
BN_free(r->e);