[openssl] OpenSSL_1_1_1-stable update
bernd.edlinger at hotmail.de
bernd.edlinger at hotmail.de
Mon Sep 9 12:47:21 UTC 2019
The branch OpenSSL_1_1_1-stable has been updated
via 4bf9781adc68684a7183961f1e5d9fbaf4885b3f (commit)
from 8003138fa9674bb160ced09520de43c3618d3ede (commit)
- Log -----------------------------------------------------------------
commit 4bf9781adc68684a7183961f1e5d9fbaf4885b3f
Author: Bernd Edlinger <bernd.edlinger at hotmail.de>
Date: Sat Sep 7 00:53:24 2019 +0200
Use BN_clear_free in DH_set0_key
Reviewed-by: Paul Dale <paul.dale at oracle.com>
(Merged from https://github.com/openssl/openssl/pull/9796)
(cherry picked from commit fa01370f7dc8f0a379483bbe74de11225857e5fe)
-----------------------------------------------------------------------
Summary of changes:
crypto/dh/dh_lib.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/crypto/dh/dh_lib.c b/crypto/dh/dh_lib.c
index 962f864dee..8d13b3c262 100644
--- a/crypto/dh/dh_lib.c
+++ b/crypto/dh/dh_lib.c
@@ -234,11 +234,11 @@ void DH_get0_key(const DH *dh, const BIGNUM **pub_key, const BIGNUM **priv_key)
int DH_set0_key(DH *dh, BIGNUM *pub_key, BIGNUM *priv_key)
{
if (pub_key != NULL) {
- BN_free(dh->pub_key);
+ BN_clear_free(dh->pub_key);
dh->pub_key = pub_key;
}
if (priv_key != NULL) {
- BN_free(dh->priv_key);
+ BN_clear_free(dh->priv_key);
dh->priv_key = priv_key;
}
More information about the openssl-commits
mailing list