Fix to appropriate variable for default connection
[platform/core/connectivity/stc-manager.git] / plugin / monitor / stc-plugin-monitor-connection.c
index 1988a43..a305002 100755 (executable)
@@ -609,7 +609,7 @@ static void __vconf_key_callback(keynode_t *node, void *user_data)
        /* add monitoring for tethering if active found */
        if (g_default_connection->tether_state == TRUE && g_default_connection->tether_iface.ifname) {
                __print_tether_connection_info();
-               stc_monitor_update_by_connection(&g_default_connection);
+               stc_monitor_update_by_connection(g_default_connection);
                stc_plugin_firewall_update();
                STC_LOGI("Data monitoring started for tethering iface !");
                return;
@@ -617,7 +617,7 @@ static void __vconf_key_callback(keynode_t *node, void *user_data)
 
        /* remove monitoring for tethering if in-active found */
        if (g_default_connection->tether_state == FALSE && g_default_connection->tether_iface.ifname) {
-               stc_monitor_update_by_connection(&g_default_connection);
+               stc_monitor_update_by_connection(g_default_connection);
                g_free(g_default_connection->tether_iface.ifname);
                g_default_connection->tether_iface.ifname = NULL;
                g_default_connection->tether_iface.type = STC_IFACE_UNKNOWN;