diff options
Diffstat (limited to 'plugins/bluetooth.c')
-rw-r--r-- | plugins/bluetooth.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/bluetooth.c b/plugins/bluetooth.c index 8bbf2ad1..a3946595 100644 --- a/plugins/bluetooth.c +++ b/plugins/bluetooth.c @@ -543,7 +543,7 @@ static void device_disable_cb(const DBusError *error, void *user_data) while (g_hash_table_iter_next(&iter, &key, &value) == TRUE) { struct bluetooth_pan *pan = value; - if (connman_network_get_device(pan->network) == device) { + if (pan->network && connman_network_get_device(pan->network) == device) { DBG("disable network %p", pan->network); connman_device_remove_network(device, pan->network); } |