3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-11-22 14:49:24 +01:00

netdev: Free sm if connect fails

This commit is contained in:
Denis Kenzior 2016-06-28 17:00:48 -05:00
parent b6d651dda8
commit 746b0e5cb1

View File

@ -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);