summaryrefslogtreecommitdiffstats
path: root/package/hostapd/patches
diff options
context:
space:
mode:
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2010-02-02 02:51:06 +0000
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2010-02-02 02:51:06 +0000
commitacd57d92f16891e4fe2725992bc3455056c1c53d (patch)
tree566bddc0480c41ff25d6a97c9c9ce98682dc85eb /package/hostapd/patches
parentf65f68dbdfbb6e94aea504691b8dd4d5b1a9ef96 (diff)
hostapd: fix a segfault in the error path of the nl80211 bss interface add function
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19496 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/hostapd/patches')
-rw-r--r--package/hostapd/patches/150-mbss_driver_handling.patch8
1 files changed, 6 insertions, 2 deletions
diff --git a/package/hostapd/patches/150-mbss_driver_handling.patch b/package/hostapd/patches/150-mbss_driver_handling.patch
index 412dc1cce..6c55b4095 100644
--- a/package/hostapd/patches/150-mbss_driver_handling.patch
+++ b/package/hostapd/patches/150-mbss_driver_handling.patch
@@ -903,8 +903,12 @@
return -1;
}
-@@ -4484,9 +4483,12 @@ static int wpa_driver_nl80211_if_add(con
- os_free(bss);
+@@ -4481,12 +4480,15 @@ static int wpa_driver_nl80211_if_add(con
+ 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;
}
- bss->ifindex = ifidx;