From: Jouni Malinen Date: Thu, 16 Feb 2012 14:38:10 +0000 (+0200) Subject: Interworking: Add verbose error message on cred block parsing errors X-Git-Tag: hostap_2_0~877 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7d86e53747a095693474e94a4f3feac3e539d79d;p=thirdparty%2Fhostap.git Interworking: Add verbose error message on cred block parsing errors Signed-hostap: Jouni Malinen --- diff --git a/wpa_supplicant/config.c b/wpa_supplicant/config.c index 9a0e1e2a9..22b00e5c8 100644 --- a/wpa_supplicant/config.c +++ b/wpa_supplicant/config.c @@ -2223,8 +2223,11 @@ int wpa_config_set_cred(struct wpa_cred *cred, const char *var, } val = wpa_config_parse_string(value, &len); - if (val == NULL) + if (val == NULL) { + wpa_printf(MSG_ERROR, "Line %d: invalid field '%s' string " + "value '%s'.", line, var, value); return -1; + } if (os_strcmp(var, "realm") == 0) { os_free(cred->realm);