[PATCH 2/2] hostapd: fix parsing the das_client option
Felix Fietkau
nbd at nbd.name
Tue Jul 26 04:29:37 PDT 2016
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 at nbd.name>
---
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
More information about the Hostap
mailing list