From d2247c3a3f67e785211a783d74aa3c86bcdfd4e2 Mon Sep 17 00:00:00 2001 From: Andrew Zaborowski Date: Mon, 26 Feb 2018 13:27:35 +0100 Subject: [PATCH] netdev: Avoid calling netdev_connect_ok twice in FT handshake_state_install_ptk triggers a call to netdev_set_pairwise_key_cb which calls netdev_connect_ok, so don't call netdev_connect_ok after handshake_state_install_ptk. This doesn't fix any specific problem though. --- src/netdev.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/netdev.c b/src/netdev.c index 6af7bb5d..1c28fc4d 100644 --- a/src/netdev.c +++ b/src/netdev.c @@ -1634,8 +1634,10 @@ static void netdev_connect_event(struct l_genl_msg *msg, netdev->in_ft = false; - if (is_rsn) + if (is_rsn) { handshake_state_install_ptk(netdev->handshake); + return; + } } netdev_connect_ok(netdev);