]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Interworking: Add verbose error message on cred block parsing errors
authorJouni Malinen <jouni@qca.qualcomm.com>
Thu, 16 Feb 2012 14:38:10 +0000 (16:38 +0200)
committerJouni Malinen <j@w1.fi>
Thu, 16 Feb 2012 14:38:10 +0000 (16:38 +0200)
Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>

wpa_supplicant/config.c

index 9a0e1e2a90a3ae5a98832501f2ab4f6e3244ce80..22b00e5c80bf08bf3c88943724675246d106cc38 100644 (file)
@@ -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);