]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
EAP-IKEv2 peer: Fix a memory leak in notify round
authorJouni Malinen <j@w1.fi>
Sun, 5 Jan 2014 17:04:01 +0000 (19:04 +0200)
committerJouni Malinen <j@w1.fi>
Tue, 7 Jan 2014 08:45:11 +0000 (10:45 +0200)
The plaintext notification needs to be freed after encryption.

Signed-hostap: Jouni Malinen <j@w1.fi>

src/eap_peer/ikev2.c

index fcf4712aced6248723eb90f00fe53db41eaf1c13..1ccc35230e17b713e90afaefdc5a68e01aa375e1 100644 (file)
@@ -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 */