From e827a711a35efacd0220abfe79ab362db5a77db9 Mon Sep 17 00:00:00 2001 From: nbd Date: Tue, 27 Mar 2012 10:42:47 +0000 Subject: hostapd: update to 20120326 git-svn-id: svn://svn.openwrt.org/openwrt/trunk@31080 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- package/hostapd/patches/520-fix_wps_pin_crash.patch | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 package/hostapd/patches/520-fix_wps_pin_crash.patch (limited to 'package/hostapd/patches/520-fix_wps_pin_crash.patch') diff --git a/package/hostapd/patches/520-fix_wps_pin_crash.patch b/package/hostapd/patches/520-fix_wps_pin_crash.patch new file mode 100644 index 0000000000..df1e3d0314 --- /dev/null +++ b/package/hostapd/patches/520-fix_wps_pin_crash.patch @@ -0,0 +1,12 @@ +--- a/hostapd/ctrl_iface.c ++++ b/hostapd/ctrl_iface.c +@@ -343,6 +343,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'; -- cgit v1.2.3