Fixed EAP-TTLS server to verify eap_ttls_phase2_eap_init() return code
authorJouni Malinen <jouni.malinen@atheros.com>
Wed, 1 Oct 2008 10:55:04 +0000 (13:55 +0300)
committerJouni Malinen <j@w1.fi>
Wed, 1 Oct 2008 10:55:04 +0000 (13:55 +0300)
commit510c02d4a362cd572303fa845b139eacb2dab387
treeeac4d6e9f5f66491a28d258115d6a3fb3f2c1be2
parentfc0db5c9163f12a1a6aea1520c8d68afc657edf2
Fixed EAP-TTLS server to verify eap_ttls_phase2_eap_init() return code

It is possible that the initialization of the Phase 2 EAP method fails and
if that happens, we need to stop EAP-TTLS server from trying to continue
using the uninitialized EAP method. Otherwise, the server could trigger
a segmentation fault when dereferencing a NULL pointer.
src/eap_server/eap_ttls.c