3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-12-21 11:52:34 +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; return;
error: error:
dbus_pending_reply(&netdev->connect_pending, if (netdev->connect_pending)
dbus_pending_reply(&netdev->connect_pending,
dbus_error_failed(netdev->connect_pending)); dbus_error_failed(netdev->connect_pending));
netdev_disassociated(netdev); netdev_disassociated(netdev);
} }