hostapd: fix a segfault in the error path of the nl80211 if_add function
This commit is contained in:
parent
05ba8690cb
commit
071799872f
1 changed files with 1 additions and 1 deletions
|
@ -4715,7 +4715,7 @@ static int wpa_driver_nl80211_if_add(const char *iface, void *priv,
|
||||||
if (type == WPA_IF_AP_BSS) {
|
if (type == WPA_IF_AP_BSS) {
|
||||||
if (linux_set_iface_flags(drv->ioctl_sock, ifname, 1)) {
|
if (linux_set_iface_flags(drv->ioctl_sock, ifname, 1)) {
|
||||||
nl80211_remove_iface(drv, ifidx);
|
nl80211_remove_iface(drv, ifidx);
|
||||||
os_free(bss);
|
os_free(new_bss);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
os_strlcpy(new_bss->ifname, ifname, IFNAMSIZ);
|
os_strlcpy(new_bss->ifname, ifname, IFNAMSIZ);
|
||||||
|
|
Loading…
Reference in a new issue