Fix error on join/left event handler
authorJiwan Kim <ji-wan.kim@samsung.com>
Mon, 13 Mar 2017 10:39:19 +0000 (19:39 +0900)
committersaerome.kim <saerome.kim@samsung.com>
Mon, 17 Jul 2017 02:09:10 +0000 (11:09 +0900)
src/mesh_dbus.c

index d11fc83..e8842da 100644 (file)
@@ -227,7 +227,7 @@ static void _mesh_signal_handler(GDBusConnection *connection,
                mesh_event_data_s ev;
                ev.data.sta_info = calloc(1, sizeof(mesh_other_station_event_s));
                RETM_IF(NULL == ev.data.sta_info, "Failed to memory allocation !");
-               g_variant_get(parameters, "(s)", bssid);
+               g_variant_get(parameters, "(s)", &bssid);
                memcpy(ev.data.sta_info->bssid, bssid, MAX_BSSID_LEN);
                h->event_handler(MESH_STATION_JOIN_EVENT, &ev);
                g_free(ev.data.sta_info);
@@ -236,7 +236,7 @@ static void _mesh_signal_handler(GDBusConnection *connection,
                mesh_event_data_s ev;
                ev.data.sta_info = calloc(1, sizeof(mesh_other_station_event_s));
                RETM_IF(NULL == ev.data.sta_info, "Failed to memory allocation !");
-               g_variant_get(parameters, "(s)", bssid);
+               g_variant_get(parameters, "(s)", &bssid);
                memcpy(ev.data.sta_info->bssid, bssid, MAX_BSSID_LEN);
                h->event_handler(MESH_STATION_LEFT_EVENT, &ev);
                g_free(ev.data.sta_info);