3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-11-18 01:59:31 +01:00

wiphy: Don't crash if called outside D-Bus

This commit is contained in:
Denis Kenzior 2015-06-22 18:33:38 -05:00
parent 002ca518c9
commit f055c22825

View File

@ -1442,8 +1442,10 @@ static void mlme_authenticate_event(struct l_genl_msg *msg,
return;
error:
dbus_pending_reply(&netdev->connect_pending,
if (netdev->connect_pending)
dbus_pending_reply(&netdev->connect_pending,
dbus_error_failed(netdev->connect_pending));
netdev_disassociated(netdev);
}