mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2025-02-16 09:03:05 -05:00
EAP-SAKE server: Fix memory freeing on error path
Allocated struct wpabuf was freed with incorrect freeing function. Fix this by using the appropriate function. Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
425e5f977e
commit
24b06511e2
@ -204,7 +204,7 @@ static struct wpabuf * eap_sake_build_confirm(struct eap_sm *sm,
|
|||||||
{
|
{
|
||||||
wpa_printf(MSG_INFO, "EAP-SAKE: Failed to compute MIC");
|
wpa_printf(MSG_INFO, "EAP-SAKE: Failed to compute MIC");
|
||||||
data->state = FAILURE;
|
data->state = FAILURE;
|
||||||
os_free(msg);
|
wpabuf_free(msg);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user