mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-24 07:46:48 +00:00
hostapd: fix a segfault in the error path of the nl80211 bss interface add function
SVN-Revision: 19496
This commit is contained in:
parent
19555b702e
commit
4c776cf093
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user