diff options
author | Mohamed Abbas <mabbas@linux.intel.com> | 2011-03-29 15:20:03 -0700 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2011-03-30 12:07:42 +0200 |
commit | fcc5945028490577fbb927b8b84a26b8c7afb124 (patch) | |
tree | 72db52b4ce36d337c4d1db0c322550b868d27a24 | |
parent | 245461430b03aee3462b1375db686fd577443164 (diff) | |
download | connman-fcc5945028490577fbb927b8b84a26b8c7afb124.tar.gz connman-fcc5945028490577fbb927b8b84a26b8c7afb124.tar.bz2 connman-fcc5945028490577fbb927b8b84a26b8c7afb124.zip |
ofono: Check for info pointer in set_active_reply
When ofono_disconnect() is being called before receiving the set_active()
reply back, info will be NULL.
Fixes BMC#14518
-rw-r--r-- | plugins/ofono.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/plugins/ofono.c b/plugins/ofono.c index 3e71441a..f126de95 100644 --- a/plugins/ofono.c +++ b/plugins/ofono.c @@ -446,10 +446,13 @@ static void set_active_reply(DBusPendingCall *call, void *user_data) info = g_hash_table_lookup(network_hash, path); - DBG("path %s network %p", path, info->network); - reply = dbus_pending_call_steal_reply(call); + if (info == NULL) + goto done; + + DBG("path %s network %p", path, info->network); + if (!pending_network_is_available(info->network)) goto done; |