projects
/
libeap.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
hostapd: fix a segfault in the error path of the nl80211 if_add function
[libeap.git]
/
src
/
drivers
/
driver_nl80211.c
diff --git
a/src/drivers/driver_nl80211.c
b/src/drivers/driver_nl80211.c
index
8fedff7
..
c5ab9e7
100644
(file)
--- 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);