mirror of
git://git.openwrt.org/openwrt/openwrt.git
synced 2025-03-02 19:49:41 +00:00
iwinfo: fix segmentation fault when doing two consecutive scans through wpa_supplicant Based on patch by Christian Kapeller <christian.kapeller@cmotion.eu> with one minor whitespace change and updated package version.
SVN-Revision: 29992
This commit is contained in:
parent
eca9950f63
commit
33e4461db6
@ -7,7 +7,7 @@
|
|||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=libiwinfo
|
PKG_NAME:=libiwinfo
|
||||||
PKG_RELEASE:=23
|
PKG_RELEASE:=24
|
||||||
|
|
||||||
PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
|
PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
|
||||||
PKG_CONFIG_DEPENDS := \
|
PKG_CONFIG_DEPENDS := \
|
||||||
|
@ -387,10 +387,13 @@ static char * nl80211_wpactl_info(const char *ifname, const char *cmd,
|
|||||||
goto out;
|
goto out;
|
||||||
|
|
||||||
|
|
||||||
send(sock, "ATTACH", 6, 0);
|
if (event)
|
||||||
|
{
|
||||||
|
send(sock, "ATTACH", 6, 0);
|
||||||
|
|
||||||
if (nl80211_wpactl_recv(sock, buffer, sizeof(buffer)) <= 0)
|
if (nl80211_wpactl_recv(sock, buffer, sizeof(buffer)) <= 0)
|
||||||
goto out;
|
goto out;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
send(sock, cmd, strlen(cmd), 0);
|
send(sock, cmd, strlen(cmd), 0);
|
||||||
@ -405,7 +408,7 @@ static char * nl80211_wpactl_info(const char *ifname, const char *cmd,
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((!event && buffer[0] != '<') || strstr(buffer, event))
|
if ((!event && buffer[0] != '<') || (event && strstr(buffer, event)))
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user