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>
This commit is contained in:
Jouni Malinen 2014-03-30 17:24:39 +03:00
parent 4be20bf9aa
commit 5cfc87b771

View file

@ -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;
}