[PATCH 2/2] hostapd: fix parsing the das_client option

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The musl implementation of inet_aton returns an error if there are any
characters left after the IP address.
When parsing the das_client, split the string at the whitespace
separator to be able to parse the address successfully

Signed-off-by: Felix Fietkau <nbd@xxxxxxxx>
---
 hostapd/config_file.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/hostapd/config_file.c b/hostapd/config_file.c
index 6dc7e8c..c579b28 100644
--- a/hostapd/config_file.c
+++ b/hostapd/config_file.c
@@ -645,6 +645,7 @@ static int hostapd_parse_das_client(struct hostapd_bss_config *bss,
 	if (secret == NULL)
 		return -1;
 
+	*secret = 0;
 	secret++;
 
 	if (hostapd_parse_ip_addr(val, &bss->radius_das_client_addr))
-- 
2.8.4


_______________________________________________
Hostap mailing list
Hostap@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/hostap



[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux