From: Jouni Malinen Date: Sun, 30 Mar 2014 14:24:39 +0000 (+0300) Subject: Make hs20_wan_metrics parser error print more helpful X-Git-Tag: hostap_2_2~411 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5cfc87b77130741198847d372d324090b4131984;p=thirdparty%2Fhostap.git 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 --- diff --git a/hostapd/config_file.c b/hostapd/config_file.c index e8863c5d5..26e64fa8e 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; }