openwrt_archive/package/hostapd/patches/420-fix_wps_pin_crash.patch
Felix Fietkau 6d1ad8e33b hostapd: backport package from trunk r39765
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 39927
2014-03-14 10:53:39 +00:00

13 lines
245 B
Diff

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