aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2010-03-07 07:59:22 (GMT)
committerJouni Malinen <j@w1.fi>2010-03-07 07:59:22 (GMT)
commit071799872f0496f1854e5904e35b4fcc573ed30f (patch)
treeafe8127a335a4bb280d18c36cd1b970edbba571b /src
parent05ba8690cb296a83e0823553bcc7f7b5f8d5db30 (diff)
downloadhostap-071799872f0496f1854e5904e35b4fcc573ed30f.zip
hostap-071799872f0496f1854e5904e35b4fcc573ed30f.tar.gz
hostap-071799872f0496f1854e5904e35b4fcc573ed30f.tar.bz2
hostapd: fix a segfault in the error path of the nl80211 if_add function
Diffstat (limited to 'src')
-rw-r--r--src/drivers/driver_nl80211.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/drivers/driver_nl80211.c b/src/drivers/driver_nl80211.c
index 8fedff7..c5ab9e7 100644
--- a/src/drivers/driver_nl80211.c
+++ b/src/drivers/driver_nl80211.c
@@ -4715,7 +4715,7 @@ static int wpa_driver_nl80211_if_add(const char *iface, void *priv,
if (type == WPA_IF_AP_BSS) {
if (linux_set_iface_flags(drv->ioctl_sock, ifname, 1)) {
nl80211_remove_iface(drv, ifidx);
- os_free(bss);
+ os_free(new_bss);
return -1;
}
os_strlcpy(new_bss->ifname, ifname, IFNAMSIZ);