3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-12-19 18:22:32 +01:00

wiphy: Fix deauthenticate event from AP

If AP issued deauthenticate event, netdev->connect_pending is null.
iwd crashes without this check.
This commit is contained in:
Ravi kumar Veeramally 2015-02-25 16:11:33 +02:00 committed by Denis Kenzior
parent cda62d8068
commit 46cdef5f7b

View File

@ -761,10 +761,14 @@ static void mlme_deauthenticate_event(struct l_genl_msg *msg,
}
l_info("Deauthentication completed");
netdev->connected_bss = NULL;
if (!netdev->connect_pending)
return;
reply = l_dbus_message_new_method_return(netdev->connect_pending);
l_dbus_message_set_arguments(reply, "");
dbus_pending_reply(&netdev->connect_pending, reply);
netdev->connected_bss = NULL;
return;