mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2024-11-28 18:28:23 -05:00
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
@ -2562,7 +2562,7 @@ static int dpp_parse_cred_dot1x(struct dpp_authentication *auth,
|
||||
"Invalid trustedEapServerName type in JSON");
|
||||
return -1;
|
||||
}
|
||||
if (name->string) {
|
||||
if (name && name->string) {
|
||||
wpa_printf(MSG_DEBUG, "DPP: Received trustedEapServerName: %s",
|
||||
name->string);
|
||||
conf->server_name = os_strdup(name->string);
|
||||
|
Loading…
Reference in New Issue
Block a user