aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorIlan Peer <ilan.peer@intel.com>2017-06-08 08:17:57 (GMT)
committerJouni Malinen <j@w1.fi>2017-07-08 13:14:03 (GMT)
commit96e595a9f126399e8a87bc012646487239664004 (patch)
tree70b6bd571ca48dd23adb482d23b0acadde4b5aef /src
parent23eead4d74849633dd5fd425abec7837a6cb5260 (diff)
downloadhostap-96e595a9f126399e8a87bc012646487239664004.zip
hostap-96e595a9f126399e8a87bc012646487239664004.tar.gz
hostap-96e595a9f126399e8a87bc012646487239664004.tar.bz2
EAP-LEAP: Fix possible memory leak in eap_leap_process_request()
Free 'resp' object in case of a failure to derive the response. Signed-off-by: Ilan Peer <ilan.peer@intel.com>
Diffstat (limited to 'src')
-rw-r--r--src/eap_peer/eap_leap.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/eap_peer/eap_leap.c b/src/eap_peer/eap_leap.c
index 7bb62e7..233b9ee 100644
--- a/src/eap_peer/eap_leap.c
+++ b/src/eap_peer/eap_leap.c
@@ -120,6 +120,7 @@ static struct wpabuf * eap_leap_process_request(struct eap_sm *sm, void *priv,
nt_challenge_response(challenge, password, password_len, rpos))) {
wpa_printf(MSG_DEBUG, "EAP-LEAP: Failed to derive response");
ret->ignore = TRUE;
+ wpabuf_free(resp);
return NULL;
}
os_memcpy(data->peer_response, rpos, LEAP_RESPONSE_LEN);