diff options
author | Loganaden Velvindron <loganaden@gmail.com> | 2015-07-31 13:20:16 -0400 |
---|---|---|
committer | Rich Salz <rsalz@openssl.org> | 2015-07-31 13:33:37 -0400 |
commit | a5e26349f73de74019892eb9e592965e633fe7d5 (patch) | |
tree | 4a2c84cd13dbe6f55c3469b163c05b52b330621a | |
parent | b68fa4d19ee68640f18d8eea4249eb0191a07694 (diff) |
Clear BN-mont values when free'ing it.
From a CloudFlare patch.
Reviewed-by: Dr. Stephen Henson <steve@openssl.org>
-rw-r--r-- | crypto/bn/bn_mont.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/crypto/bn/bn_mont.c b/crypto/bn/bn_mont.c index aadd5db1d8..aafd1b8526 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); } |