From 45dabb9e443ff831cb01adb92577e74c509a5b38 Mon Sep 17 00:00:00 2001 From: Denis Kenzior Date: Tue, 28 Jun 2016 18:24:53 -0500 Subject: [PATCH] netdev: Call eapol_cancel if operstate fails --- src/netdev.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/netdev.c b/src/netdev.c index 86a9a11c..a77f683d 100644 --- a/src/netdev.c +++ b/src/netdev.c @@ -409,6 +409,8 @@ static void netdev_operstate_cb(bool success, void *user_data) MPDU_REASON_CODE_UNSPECIFIED); l_genl_family_send(nl80211, msg, NULL, NULL, NULL); + eapol_cancel(netdev->index); + result = NETDEV_RESULT_KEY_SETTING_FAILED; } else result = NETDEV_RESULT_OK;