projects
/
oweals
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b68fa4d
)
Clear BN-mont values when free'ing it.
author
Loganaden Velvindron
<loganaden@gmail.com>
Fri, 31 Jul 2015 17:20:16 +0000
(13:20 -0400)
committer
Rich Salz
<rsalz@openssl.org>
Fri, 31 Jul 2015 17:33:37 +0000
(13:33 -0400)
From a CloudFlare patch.
Reviewed-by: Dr. Stephen Henson <steve@openssl.org>
crypto/bn/bn_mont.c
patch
|
blob
|
history
diff --git
a/crypto/bn/bn_mont.c
b/crypto/bn/bn_mont.c
index aadd5db1d8dbde3b71884403b8cb5ac3165a9419..aafd1b852654b60256ab08bc842ba3c34dfa17f6 100644
(file)
--- a/
crypto/bn/bn_mont.c
+++ b/
crypto/bn/bn_mont.c
@@
-361,9
+361,9
@@
void BN_MONT_CTX_free(BN_MONT_CTX *mont)
if (mont == NULL)
return;
- BN_free(&(mont->RR));
- BN_free(&(mont->N));
- BN_free(&(mont->Ni));
+ BN_
clear_
free(&(mont->RR));
+ BN_
clear_
free(&(mont->N));
+ BN_
clear_
free(&(mont->Ni));
if (mont->flags & BN_FLG_MALLOCED)
OPENSSL_free(mont);
}