mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2025-01-31 01:04:03 -05:00
Fix use-after-free issue with pid_file in hostapd termination
This commit is contained in:
parent
e542b40f93
commit
dd745de384
@ -460,13 +460,13 @@ int main(int argc, char *argv[])
|
|||||||
ret = 0;
|
ret = 0;
|
||||||
|
|
||||||
out:
|
out:
|
||||||
os_free(pid_file);
|
|
||||||
/* Deinitialize all interfaces */
|
/* Deinitialize all interfaces */
|
||||||
for (i = 0; i < interfaces.count; i++)
|
for (i = 0; i < interfaces.count; i++)
|
||||||
hostapd_interface_deinit(interfaces.iface[i]);
|
hostapd_interface_deinit(interfaces.iface[i]);
|
||||||
os_free(interfaces.iface);
|
os_free(interfaces.iface);
|
||||||
|
|
||||||
hostapd_global_deinit(pid_file);
|
hostapd_global_deinit(pid_file);
|
||||||
|
os_free(pid_file);
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user