summaryrefslogtreecommitdiffstats
path: root/package/hostapd/patches/720-fix_wps_pin_crash.patch
diff options
context:
space:
mode:
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2011-03-21 23:02:12 +0000
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2011-03-21 23:02:12 +0000
commitf67f1954fb20ab83cc5e7265ba70c49fb1a82061 (patch)
treeaf87a6ddbfebb2854365648555520af4d5bc4570 /package/hostapd/patches/720-fix_wps_pin_crash.patch
parent45e42754c7e705c8e999a9db9fc380390af259f4 (diff)
hostapd: update to 2011-02-21, use PKG_MIRROR_MD5SUM, includes fixes for WPS
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26261 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/hostapd/patches/720-fix_wps_pin_crash.patch')
-rw-r--r--package/hostapd/patches/720-fix_wps_pin_crash.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/package/hostapd/patches/720-fix_wps_pin_crash.patch b/package/hostapd/patches/720-fix_wps_pin_crash.patch
new file mode 100644
index 000000000..e1a3184d6
--- /dev/null
+++ b/package/hostapd/patches/720-fix_wps_pin_crash.patch
@@ -0,0 +1,12 @@
+--- 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';