aboutsummaryrefslogtreecommitdiffstats
path: root/package/hostapd/patches/720-fix_wps_pin_crash.patch
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2011-03-21 23:02:12 +0000
committerFelix Fietkau <nbd@openwrt.org>2011-03-21 23:02:12 +0000
commite822e203487b91e1d81f7765cabeefa81df21b80 (patch)
tree1dcaa56dfef326a89358fd33d31d235915feaecb /package/hostapd/patches/720-fix_wps_pin_crash.patch
parentb568a64f8c1f7c077c83d8c189d4c84ca270aeb4 (diff)
downloadupstream-e822e203487b91e1d81f7765cabeefa81df21b80.tar.gz
upstream-e822e203487b91e1d81f7765cabeefa81df21b80.tar.bz2
upstream-e822e203487b91e1d81f7765cabeefa81df21b80.zip
hostapd: update to 2011-02-21, use PKG_MIRROR_MD5SUM, includes fixes for WPS
SVN-Revision: 26261
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 0000000000..e1a3184d64
--- /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';