From 188ebcd07b64658a2c48e49453202a1e55fb0480 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Sun, 5 Jan 2014 19:04:01 +0200 Subject: [PATCH] EAP-IKEv2 peer: Fix a memory leak in notify round The plaintext notification needs to be freed after encryption. Signed-hostap: Jouni Malinen --- src/eap_peer/ikev2.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/eap_peer/ikev2.c b/src/eap_peer/ikev2.c index fcf4712ac..1ccc35230 100644 --- a/src/eap_peer/ikev2.c +++ b/src/eap_peer/ikev2.c @@ -1257,6 +1257,7 @@ static struct wpabuf * ikev2_build_notify(struct ikev2_responder_data *data) wpabuf_free(msg); return NULL; } + wpabuf_free(plain); data->state = IKEV2_FAILED; } else { /* HDR, N */