diff options
author | Jouni Malinen <jouni@qca.qualcomm.com> | 2012-02-16 16:38:10 +0200 |
---|---|---|
committer | Jouni Malinen <j@w1.fi> | 2012-02-16 16:38:10 +0200 |
commit | 7d86e53747a095693474e94a4f3feac3e539d79d (patch) | |
tree | a6cfb1a7fb8b4a855bf5d77a3afc1c22f20cf099 | |
parent | 1a712d2fc1f0fbc24debfb7901cd983ead31d245 (diff) | |
download | external_wpa_supplicant_8_ti-7d86e53747a095693474e94a4f3feac3e539d79d.zip external_wpa_supplicant_8_ti-7d86e53747a095693474e94a4f3feac3e539d79d.tar.gz external_wpa_supplicant_8_ti-7d86e53747a095693474e94a4f3feac3e539d79d.tar.bz2 |
Interworking: Add verbose error message on cred block parsing errors
Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
-rw-r--r-- | wpa_supplicant/config.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/wpa_supplicant/config.c b/wpa_supplicant/config.c index 9a0e1e2..22b00e5 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); |