1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-12-02 21:43:08 +02:00
openwrt-xburst/package/hostapd/patches/720-fix_wps_pin_crash.patch
nbd f90d788560 backport mac80211, hostapd, iw, crda from trunk as of r26369
git-svn-id: svn://svn.openwrt.org/openwrt/branches/backfire@26370 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-03-30 12:37:36 +00:00

13 lines
245 B
Diff

--- a/hostapd/ctrl_iface.c
+++ b/hostapd/ctrl_iface.c
@@ -514,6 +514,9 @@ static int hostapd_ctrl_iface_wps_ap_pin
char *pos;
const char *pin_txt;
+ if (!hapd->wps)
+ return -1;
+
pos = os_strchr(txt, ' ');
if (pos)
*pos++ = '\0';