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:
parent
4be20bf9aa
commit
5cfc87b771
1 changed files with 1 additions and 1 deletions
|
@ -1602,7 +1602,7 @@ static int hs20_parse_wan_metrics(struct hostapd_bss_config *bss, char *buf,
|
||||||
|
|
||||||
fail:
|
fail:
|
||||||
wpa_printf(MSG_ERROR, "Line %d: Invalid hs20_wan_metrics '%s'",
|
wpa_printf(MSG_ERROR, "Line %d: Invalid hs20_wan_metrics '%s'",
|
||||||
line, pos);
|
line, buf);
|
||||||
os_free(wan_metrics);
|
os_free(wan_metrics);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue