aboutsummaryrefslogtreecommitdiffstats
path: root/hostapd
diff options
context:
space:
mode:
authorJouni Malinen <jouni.malinen@atheros.com>2009-11-10 15:05:28 (GMT)
committerJouni Malinen <j@w1.fi>2009-11-10 15:05:28 (GMT)
commitdd745de384a5d6398b62a2737f2b6bd581495de7 (patch)
tree5460a47d71e76dae91a5f5f861074a5c8887a7f9 /hostapd
parente542b40f9384beb8b19d0a8017bfae2487c6798d (diff)
downloadhostap-dd745de384a5d6398b62a2737f2b6bd581495de7.zip
hostap-dd745de384a5d6398b62a2737f2b6bd581495de7.tar.gz
hostap-dd745de384a5d6398b62a2737f2b6bd581495de7.tar.bz2
Fix use-after-free issue with pid_file in hostapd termination
Diffstat (limited to 'hostapd')
-rw-r--r--hostapd/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hostapd/main.c b/hostapd/main.c
index b582b2d..8bcc745 100644
--- a/hostapd/main.c
+++ b/hostapd/main.c
@@ -460,13 +460,13 @@ int main(int argc, char *argv[])
ret = 0;
out:
- os_free(pid_file);
/* Deinitialize all interfaces */
for (i = 0; i < interfaces.count; i++)
hostapd_interface_deinit(interfaces.iface[i]);
os_free(interfaces.iface);
hostapd_global_deinit(pid_file);
+ os_free(pid_file);
return ret;
}