From: Jiwan Kim Date: Mon, 13 Mar 2017 10:39:19 +0000 (+0900) Subject: Fix error on join/left event handler X-Git-Tag: submit/tizen/20170828.225740~50 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=eb346420cdc5232111e071d5c32ad4ed8310a2d1;p=platform%2Fcore%2Fapi%2Fwifi-mesh.git Fix error on join/left event handler --- diff --git a/src/mesh_dbus.c b/src/mesh_dbus.c index d11fc83..e8842da 100644 --- a/src/mesh_dbus.c +++ b/src/mesh_dbus.c @@ -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);