projects
/
mech_eap.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2801659
)
Fix memory leak on hostapd BSS addition error path
author
Jouni Malinen
<j@w1.fi>
Mon, 5 Jan 2015 23:39:27 +0000
(
01:39
+0200)
committer
Jouni Malinen
<j@w1.fi>
Tue, 6 Jan 2015 16:30:20 +0000
(18:30 +0200)
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>
src/ap/hostapd.c
patch
|
blob
|
history
diff --git
a/src/ap/hostapd.c
b/src/ap/hostapd.c
index
04a0b69
..
b4a6a96
100644
(file)
--- a/
src/ap/hostapd.c
+++ b/
src/ap/hostapd.c
@@
-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;
}