]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Make hs20_wan_metrics parser error print more helpful
authorJouni Malinen <j@w1.fi>
Sun, 30 Mar 2014 14:24:39 +0000 (17:24 +0300)
committerJouni Malinen <j@w1.fi>
Sun, 30 Mar 2014 14:25:17 +0000 (17:25 +0300)
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>
hostapd/config_file.c

index e8863c5d52b526fc3faf581894b442ca4ac38238..26e64fa8ef55d6d297a20b3580828f696cd23257 100644 (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;
 }