[WGID-260072] Add null check after g_try_malloc0 77/141877/1 accepted/tizen_3.0_ivi accepted/tizen/3.0/common/20170803.140647 accepted/tizen/3.0/ivi/20170803.011227 accepted/tizen/3.0/mobile/20170803.011121 accepted/tizen/3.0/tv/20170803.011144 accepted/tizen/3.0/wearable/20170803.011208 submit/tizen_3.0/20170802.052417
authorchleun.moon <chleun.moon@samsung.com>
Wed, 2 Aug 2017 01:27:12 +0000 (10:27 +0900)
committerchleun.moon <chleun.moon@samsung.com>
Wed, 2 Aug 2017 01:27:18 +0000 (10:27 +0900)
Change-Id: Ie197aa0e8d74df6b2fd06bd6d76fb1ae0ca29086
Signed-off-by: cheoleun <chleun.moon@samsung.com>
packaging/net-config.spec
src/utils/util.c

index 114c225..c841d95 100755 (executable)
@@ -1,6 +1,6 @@
 Name:          net-config
 Summary:       TIZEN Network Configuration service
-Version:       1.1.102
+Version:       1.1.103
 Release:       2
 Group:         System/Network
 License:       Apache-2.0
index cc8826d..0135711 100755 (executable)
@@ -885,6 +885,11 @@ static void register_dnssd_conn_destroy_signal(gchar *name)
        }
 
        data = g_try_malloc0(sizeof(dnssd_conn_destroy_data));
+       if (data == NULL) {
+               ERR("Faild to allocate memory");
+               return;
+       }
+
        data->conn_name = g_strdup(name);
 
        data->conn_id = g_dbus_connection_signal_subscribe(connection,