Interworking: Add verbose error message on cred block parsing errors
Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
This commit is contained in:
parent
1a712d2fc1
commit
7d86e53747
1 changed files with 4 additions and 1 deletions
|
@ -2223,8 +2223,11 @@ int wpa_config_set_cred(struct wpa_cred *cred, const char *var,
|
||||||
}
|
}
|
||||||
|
|
||||||
val = wpa_config_parse_string(value, &len);
|
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;
|
return -1;
|
||||||
|
}
|
||||||
|
|
||||||
if (os_strcmp(var, "realm") == 0) {
|
if (os_strcmp(var, "realm") == 0) {
|
||||||
os_free(cred->realm);
|
os_free(cred->realm);
|
||||||
|
|
Loading…
Reference in a new issue