Files
wifipineapple-openwrt/package/hostapd/patches/520-fix_wps_pin_crash.patch
Felix Fietkau 36ac145eea hostapd: update to 2012-09-10
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@33392 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-09-13 12:38:51 +00:00

13 lines
245 B
Diff

--- a/hostapd/ctrl_iface.c
+++ b/hostapd/ctrl_iface.c
@@ -450,6 +450,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';