[openssl-commits] [openssl] OpenSSL_1_0_2-stable update
Rich Salz
rsalz at openssl.org
Fri Jul 31 17:33:57 UTC 2015
The branch OpenSSL_1_0_2-stable has been updated
via a5e26349f73de74019892eb9e592965e633fe7d5 (commit)
from b68fa4d19ee68640f18d8eea4249eb0191a07694 (commit)
- Log -----------------------------------------------------------------
commit a5e26349f73de74019892eb9e592965e633fe7d5
Author: Loganaden Velvindron <loganaden at gmail.com>
Date: Fri Jul 31 13:20:16 2015 -0400
Clear BN-mont values when free'ing it.
From a CloudFlare patch.
Reviewed-by: Dr. Stephen Henson <steve at openssl.org>
-----------------------------------------------------------------------
Summary of changes:
crypto/bn/bn_mont.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/crypto/bn/bn_mont.c b/crypto/bn/bn_mont.c
index aadd5db..aafd1b8 100644
--- 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);
}
More information about the openssl-commits
mailing list