Fix incorrect dbus usage that caused crash 52/244852/1 accepted/tizen/unified/20201006.044352 submit/tizen/20200925.132900 submit/tizen/20201005.112026
authorJaehyun Kim <jeik01.kim@samsung.com>
Fri, 25 Sep 2020 05:45:55 +0000 (14:45 +0900)
committerJaehyun Kim <jeik01.kim@samsung.com>
Fri, 25 Sep 2020 05:45:55 +0000 (14:45 +0900)
Change-Id: Ifd11a65d3182533d210401fbce4c5fb9b6504b0d
Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
src/service.c

index 66f6d5a..2b40dec 100755 (executable)
@@ -4381,8 +4381,9 @@ static void append_properties(DBusMessageIter *dict, dbus_bool_t limited,
                connman_dbus_dict_append_basic(dict, "AssocStatusCode",
                                DBUS_TYPE_INT32, &service->assoc_status_code);
 
+               val = service->hidden_service;
                connman_dbus_dict_append_basic(dict, "Hidden",
-                               DBUS_TYPE_BOOLEAN, &service->hidden_service);
+                               DBUS_TYPE_BOOLEAN, &val);
 
                break;
 #endif