mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2025-01-30 16:54:04 -05:00
Fix memory leak on hostapd BSS addition error path
The per-BSS configuration information needs to be freed if hostapd fails to add a new interface for a BSS added with "ADD bss_config=..." command. Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
2801659268
commit
e10422c025
@ -1976,6 +1976,8 @@ int hostapd_add_iface(struct hapd_interfaces *interfaces, char *buf)
|
||||
hapd_iface->num_bss--;
|
||||
wpa_printf(MSG_DEBUG, "%s: free hapd %p %s",
|
||||
__func__, hapd, hapd->conf->iface);
|
||||
hostapd_config_free_bss(hapd->conf);
|
||||
hapd->conf = NULL;
|
||||
os_free(hapd);
|
||||
return -1;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user