hostapd: fix an error on parsing radius_das_client
[openwrt/openwrt.git] / package / network / services / hostapd / patches / 110-fix_parse_das_client.patch
1 --- a/hostapd/config_file.c
2 +++ b/hostapd/config_file.c
3 @@ -645,6 +645,7 @@ static int hostapd_parse_das_client(stru
4 if (secret == NULL)
5 return -1;
6
7 + *secret = 0;
8 secret++;
9
10 if (hostapd_parse_ip_addr(val, &bss->radius_das_client_addr))