From eb346420cdc5232111e071d5c32ad4ed8310a2d1 Mon Sep 17 00:00:00 2001 From: Jiwan Kim Date: Mon, 13 Mar 2017 19:39:19 +0900 Subject: [PATCH] Fix error on join/left event handler --- src/mesh_dbus.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); -- 2.34.1