eap-ttls: Allow NULL state for Phase 2

This commit is contained in:
Tim Kourt 2019-01-10 14:34:25 -08:00 committed by Denis Kenzior
parent af297039b1
commit f924974e62
1 changed files with 1 additions and 4 deletions

View File

@ -673,11 +673,8 @@ static bool eap_ttls_tunnel_ready(struct eap_state *eap,
eap_set_key_material(eap, msk_emsk + 0, 64, msk_emsk + 64, 64, NULL, 0);
if (!phase2->state)
return false;
if (phase2->ops->init)
phase2->ops->init(eap);
return phase2->ops->init(eap);
return true;
}