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
1 changed files with 1 additions and 1 deletions
|
@ -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");
|
||||
data->state = FAILURE;
|
||||
os_free(msg);
|
||||
wpabuf_free(msg);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue