commit f924974e621a02a562ac6441d1bacd2ca4d9ffdf
parent af297039b18f121220be61e4eb4c38cdcd3d2f74
Author: Tim Kourt <tim.a.kourt@linux.intel.com>
Date: Thu, 10 Jan 2019 14:34:25 -0800
eap-ttls: Allow NULL state for Phase 2
Diffstat:
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/src/eap-ttls.c b/src/eap-ttls.c
@@ -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;
}