Coverity CID 2958: Avoid NULL deref.

This commit is contained in:
christos 2006-05-21 17:39:10 +00:00
parent a7631b82f6
commit f84c1e59e0
1 changed files with 1 additions and 1 deletions

View File

@ -717,7 +717,7 @@ static int eap_ttls_phase2_request(struct eap_sm *sm,
wpa_printf(MSG_INFO,
"EAP-TTLS: Identity not configured");
eap_sm_request_identity(sm, config);
if (config->password == NULL)
if (config && config->password == NULL)
eap_sm_request_password(sm, config);
return 0;
}