From f055c22825700079f569e2ff75967970a1d9831d Mon Sep 17 00:00:00 2001 From: Denis Kenzior Date: Mon, 22 Jun 2015 18:33:38 -0500 Subject: [PATCH] wiphy: Don't crash if called outside D-Bus --- src/wiphy.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/wiphy.c b/src/wiphy.c index 987085b0..2d9f51ee 100644 --- a/src/wiphy.c +++ b/src/wiphy.c @@ -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); }