mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-11-26 10:39:23 +01:00
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;
|
||||
|
||||
error:
|
||||
if (netdev->sm) {
|
||||
eapol_sm_free(netdev->sm);
|
||||
netdev->sm = NULL;
|
||||
|
||||
if (netdev->connect_cb)
|
||||
netdev->connect_cb(netdev, NETDEV_RESULT_ASSOCIATION_FAILED,
|
||||
netdev->user_data);
|
||||
|
Loading…
Reference in New Issue
Block a user