Fix DEREF_AFTER_NULL issue 62/242662/1 submit/tizen/20200828.142119
authorJaehyun Kim <jeik01.kim@samsung.com>
Fri, 28 Aug 2020 13:28:14 +0000 (22:28 +0900)
committerJaehyun Kim <jeik01.kim@samsung.com>
Fri, 28 Aug 2020 13:28:14 +0000 (22:28 +0900)
After having been compared to NULL value at network_dbus.c:806,
pointer 'network_info' is dereferenced at network_dbus.c:824

Change-Id: I866901dc43c93857e2eea77f87c1fb32cea21a54
Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
src/network_dbus.c

index 8cab961..d0d6ebc 100755 (executable)
@@ -821,7 +821,7 @@ GVariant *_net_invoke_dbus_method(network_info_s *network_info,
                created = FALSE;
        }
 
-       reply = g_dbus_connection_call_sync(network_info->connection,
+       reply = g_dbus_connection_call_sync(connection,
                        dest,
                        path,
                        interface_name,