aboutsummaryrefslogtreecommitdiffstats
path: root/hostapd
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2014-03-30 14:24:39 (GMT)
committerJouni Malinen <j@w1.fi>2014-03-30 14:25:17 (GMT)
commit5cfc87b77130741198847d372d324090b4131984 (patch)
treea58ad688cf5b0dae7df806639195697dea13fae2 /hostapd
parent4be20bf9aab9f38127b5fa71139b306c608f7486 (diff)
downloadhostap-5cfc87b77130741198847d372d324090b4131984.zip
hostap-5cfc87b77130741198847d372d324090b4131984.tar.gz
hostap-5cfc87b77130741198847d372d324090b4131984.tar.bz2
Make hs20_wan_metrics parser error print more helpful
pos == NULL in almost all of the error cases here, so print the full parameter value instead of the current position. Signed-off-by: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'hostapd')
-rw-r--r--hostapd/config_file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hostapd/config_file.c b/hostapd/config_file.c
index e8863c5..26e64fa 100644
--- a/hostapd/config_file.c
+++ b/hostapd/config_file.c
@@ -1602,7 +1602,7 @@ static int hs20_parse_wan_metrics(struct hostapd_bss_config *bss, char *buf,
fail:
wpa_printf(MSG_ERROR, "Line %d: Invalid hs20_wan_metrics '%s'",
- line, pos);
+ line, buf);
os_free(wan_metrics);
return -1;
}