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>
master
Jouni Malinen 10 years ago
parent 4be20bf9aa
commit 5cfc87b771

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

Loading…
Cancel
Save