netdev: Free sm if connect fails
This commit is contained in:
parent
b6d651dda8
commit
746b0e5cb1
|
@ -888,6 +888,10 @@ static void netdev_connect_event(struct l_genl_msg *msg,
|
||||||
return;
|
return;
|
||||||
|
|
||||||
error:
|
error:
|
||||||
|
if (netdev->sm) {
|
||||||
|
eapol_sm_free(netdev->sm);
|
||||||
|
netdev->sm = NULL;
|
||||||
|
|
||||||
if (netdev->connect_cb)
|
if (netdev->connect_cb)
|
||||||
netdev->connect_cb(netdev, NETDEV_RESULT_ASSOCIATION_FAILED,
|
netdev->connect_cb(netdev, NETDEV_RESULT_ASSOCIATION_FAILED,
|
||||||
netdev->user_data);
|
netdev->user_data);
|
||||||
|
|
Loading…
Reference in New Issue