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:
770ecdf
)
hostapd: Fix error path in hostapd_add_iface()
author
Kyeyoon Park
<kyeyoonp@qca.qualcomm.com>
Tue, 29 Oct 2013 14:32:23 +0000
(16:32 +0200)
committer
Jouni Malinen
<j@w1.fi>
Thu, 31 Oct 2013 13:59:12 +0000
(15:59 +0200)
Incorrect count variable was used in freeing up the BSS data.
Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
src/ap/hostapd.c
patch
|
blob
|
history
diff --git
a/src/ap/hostapd.c
b/src/ap/hostapd.c
index
26b3e89
..
48cf5a0
100644
(file)
--- a/
src/ap/hostapd.c
+++ b/
src/ap/hostapd.c
@@
-1406,7
+1406,11
@@
fail:
if (conf)
hostapd_config_free(conf);
if (hapd_iface) {
- os_free(hapd_iface->bss[interfaces->count]);
+ if (hapd_iface->bss) {
+ for (i = 0; i < hapd_iface->num_bss; i++)
+ os_free(hapd_iface->bss[i]);
+ os_free(hapd_iface->bss);
+ }
os_free(hapd_iface);
}
return -1;