netdev: fail early on unsuccessful eapol_start

This commit is contained in:
Tim Kourt 2017-10-27 14:41:01 -07:00 committed by Denis Kenzior
parent 3f4b5a98f5
commit adc203184b
1 changed files with 2 additions and 1 deletions

View File

@ -1607,7 +1607,8 @@ static void netdev_connect_event(struct l_genl_msg *msg,
* Start processing EAPoL frames now that the state machine
* has all the input data even in FT mode.
*/
eapol_start(netdev->sm);
if (!eapol_start(netdev->sm))
goto error;
if (!netdev->in_ft) {
if (netdev->event_filter)