]> git.ipfire.org Git - thirdparty/hostap.git/commit
OpenSSL: Fix a memory leak in crypto_ec_key_parse_priv()
authorJouni Malinen <j@w1.fi>
Sun, 21 Jan 2024 22:37:31 +0000 (00:37 +0200)
committerJouni Malinen <j@w1.fi>
Sun, 21 Jan 2024 22:37:31 +0000 (00:37 +0200)
commit2814dbd6dbfc982fe7a2f888523de2b0f293ee3a
tree5ece8073fa7129949fa3027060720b44a6283da0
parentaa1aa289cd54c004b446b25f7abc1bf64ecf59d6
OpenSSL: Fix a memory leak in crypto_ec_key_parse_priv()

The OpenSSL 3.x version of crypto_ec_key_parse_priv using
OSSL_DECODER_CTX missed the call to free the context. Fix it to avoid a
memory leak.

Fixes: 4f4479ef9e1c ("OpenSSL: crypto_ec_key_parse_{priv,pub}() without EC_KEY API")
Signed-off-by: Jouni Malinen <j@w1.fi>
src/crypto/crypto_openssl.c