DPP2: Fix dot1x config object parsing without trustedEapServerName
Need to check that the JSON node was found before using its value. Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
This commit is contained in:
parent
8f88dcf050
commit
0bbab64656
1 changed files with 1 additions and 1 deletions
|
@ -2562,7 +2562,7 @@ static int dpp_parse_cred_dot1x(struct dpp_authentication *auth,
|
||||||
"Invalid trustedEapServerName type in JSON");
|
"Invalid trustedEapServerName type in JSON");
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
if (name->string) {
|
if (name && name->string) {
|
||||||
wpa_printf(MSG_DEBUG, "DPP: Received trustedEapServerName: %s",
|
wpa_printf(MSG_DEBUG, "DPP: Received trustedEapServerName: %s",
|
||||||
name->string);
|
name->string);
|
||||||
conf->server_name = os_strdup(name->string);
|
conf->server_name = os_strdup(name->string);
|
||||||
|
|
Loading…
Reference in a new issue