EAP-IKEv2 peer: Fix a memory leak in notify round
The plaintext notification needs to be freed after encryption. Signed-hostap: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
a190189d22
commit
188ebcd07b
1 changed files with 1 additions and 0 deletions
|
@ -1257,6 +1257,7 @@ static struct wpabuf * ikev2_build_notify(struct ikev2_responder_data *data)
|
||||||
wpabuf_free(msg);
|
wpabuf_free(msg);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
wpabuf_free(plain);
|
||||||
data->state = IKEV2_FAILED;
|
data->state = IKEV2_FAILED;
|
||||||
} else {
|
} else {
|
||||||
/* HDR, N */
|
/* HDR, N */
|
||||||
|
|
Loading…
Reference in a new issue