summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2010-02-02 02:51:06 +0000
committerFelix Fietkau <nbd@openwrt.org>2010-02-02 02:51:06 +0000
commit4c776cf0938d9e7ab9e02798264c57cf04f46246 (patch)
tree90fbaa5906a958aa5cc8990e22931fa4a2703012
parent19555b702efd6bb5b76d8ded7ddb10da4d7cd3aa (diff)
downloadmtk-20170518-4c776cf0938d9e7ab9e02798264c57cf04f46246.zip
mtk-20170518-4c776cf0938d9e7ab9e02798264c57cf04f46246.tar.gz
mtk-20170518-4c776cf0938d9e7ab9e02798264c57cf04f46246.tar.bz2
hostapd: fix a segfault in the error path of the nl80211 bss interface add function
SVN-Revision: 19496
-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 412dc1c..6c55b40 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;