]> git.ipfire.org Git - thirdparty/hostap.git/commit
OpenSSL: Fix memory leak in crypto_dh_derive_secret()
authorJouni Malinen <jouni@codeaurora.org>
Wed, 8 May 2019 15:53:32 +0000 (18:53 +0300)
committerJouni Malinen <j@w1.fi>
Wed, 8 May 2019 15:53:32 +0000 (18:53 +0300)
commit8925d2010d93ff6bc7119f6efc284384ec23efd4
tree1eb7995d7bca0a1e9cc336789998720118c807ef
parent57ec74ea9b9afb7d0f841cbd70955152251b4813
OpenSSL: Fix memory leak in crypto_dh_derive_secret()

BN_clear() does not free the BIGNUM; it only clears its value. Fix this
memory leak by using the appropriate BN_clear_free() function instead.

Fixes: b11fa98bcb8a ("Add explicit checks for peer's DH public key")
Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
src/crypto/crypto_openssl.c