hostapd: fix an error on parsing radius_das_client
authorFelix Fietkau <nbd@nbd.name>
Thu, 21 Jul 2016 14:58:19 +0000 (16:58 +0200)
committerFelix Fietkau <nbd@nbd.name>
Thu, 21 Jul 2016 14:58:50 +0000 (16:58 +0200)
Signed-off-by: Felix Fietkau <nbd@nbd.name>
package/network/services/hostapd/patches/110-fix_parse_das_client.patch [new file with mode: 0644]
package/network/services/hostapd/patches/300-noscan.patch

diff --git a/package/network/services/hostapd/patches/110-fix_parse_das_client.patch b/package/network/services/hostapd/patches/110-fix_parse_das_client.patch
new file mode 100644 (file)
index 0000000..67fb899
--- /dev/null
@@ -0,0 +1,10 @@
+--- a/hostapd/config_file.c
++++ b/hostapd/config_file.c
+@@ -645,6 +645,7 @@ static int hostapd_parse_das_client(stru
+       if (secret == NULL)
+               return -1;
++      *secret = 0;
+       secret++;
+       if (hostapd_parse_ip_addr(val, &bss->radius_das_client_addr))
index bb3d57b0ea2856f440b13e382417477a5b152e8d..21d631603b1f4e0af8dc11c3a249fc7d247021f3 100644 (file)
@@ -1,6 +1,6 @@
 --- a/hostapd/config_file.c
 +++ b/hostapd/config_file.c
-@@ -2861,6 +2861,10 @@ static int hostapd_config_fill(struct ho
+@@ -2862,6 +2862,10 @@ static int hostapd_config_fill(struct ho
                }
  #endif /* CONFIG_IEEE80211W */
  #ifdef CONFIG_IEEE80211N