]> git.ipfire.org Git - thirdparty/hostap.git/commit
eap_proxy: Fix memory leaks when using eap_peer_erp_init()
authorSrikanth Marepalli <srimarep@codeaurora.org>
Thu, 20 Sep 2018 07:56:07 +0000 (13:26 +0530)
committerJouni Malinen <j@w1.fi>
Fri, 21 Sep 2018 18:34:08 +0000 (21:34 +0300)
commitbd88ed60fa9e45c67aeab45a5b7bd6d536cbf14d
tree75a4e70c123da8617aab30873bd93ecb7628b905
parent820ea0ba934755bad1bdac3bca435312077906c3
eap_proxy: Fix memory leaks when using eap_peer_erp_init()

The external session_id and emsk from eap_proxy_get_eap_session_id() and
eap_proxy_get_emsk() need to be freed consistently in all code paths
within eap_peer_erp_init() and outside it in the case ERP is not
initialized.

Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
src/eap_peer/eap.c
src/eapol_supp/eapol_supp_sm.c