Check data->network reference at MBM network cleanup
authorMartin Xu <martin.xu@intel.com>
Wed, 14 Oct 2009 07:39:05 +0000 (15:39 +0800)
committerMarcel Holtmann <marcel@holtmann.org>
Tue, 20 Oct 2009 20:03:14 +0000 (22:03 +0200)
plugins/mbm.c

index e7b5e17..9805df7 100644 (file)
@@ -293,6 +293,9 @@ static void cleanup_network(struct connman_device *device)
 
        DBG("");
 
+       if (data->network == NULL)
+               return;
+
        connman_network_set_connected(data->network, FALSE);
 
        identifier = connman_network_get_identifier(data->network);