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:
86fecb2
)
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:38:57 +0000
(13:38 -0400)
From a CloudFlare patch.
Reviewed-by: Dr. Stephen Henson <steve@openssl.org>
(cherry picked from commit
1a586b3942de1c0bd64203d09385d5e74f499d8d
)
crypto/bn/bn_mont.c
patch
|
blob
|
history
diff --git
a/crypto/bn/bn_mont.c
b/crypto/bn/bn_mont.c
index bab8dfe6ea6399af8c2c3e20b5e64198f4c6ab16..61c70f061ff5425a0f6c31ce43d960a74dc177ea 100644
(file)
--- a/
crypto/bn/bn_mont.c
+++ b/
crypto/bn/bn_mont.c
@@
-427,9
+427,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);
}