Fix compilation error
authorMarcel Holtmann <marcel@holtmann.org>
Wed, 30 Dec 2009 08:55:44 +0000 (00:55 -0800)
committerMarcel Holtmann <marcel@holtmann.org>
Wed, 30 Dec 2009 08:55:44 +0000 (00:55 -0800)
plugins/mbm.c

index 22d53ff..0bf5c84 100644 (file)
@@ -670,7 +670,7 @@ static void mbm_newlink(unsigned flags, unsigned change, void *user_data)
 
        if ((data->flags & IFF_LOWER_UP) != (flags & IFF_LOWER_UP)) {
                if (flags & IFF_LOWER_UP) {
-                       connman_network_set_method(network,
+                       connman_network_set_method(data->network,
                                        CONNMAN_IPCONFIG_METHOD_DHCP);
                        connman_network_set_connected(data->network, TRUE);
                } else {