summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJooseok Park <jooseok.park@samsung.com>2016-12-06 19:09:53 +0900
committerJooseok Park <jooseok.park@samsung.com>2016-12-06 19:10:47 +0900
commitc4d0bb4011057f35bc1e1108e061f947c790103d (patch)
tree9e8e8477428c5ba00145a7e3b8c896059d5b91e1
parentcabb4e748440c4266e450cde8ef1c4c02fd58b42 (diff)
downloadiotcon-c4d0bb4011057f35bc1e1108e061f947c790103d.tar.gz
iotcon-c4d0bb4011057f35bc1e1108e061f947c790103d.tar.bz2
iotcon-c4d0bb4011057f35bc1e1108e061f947c790103d.zip
- add container null check Change-Id: Iea2cb26e759da38e030101c333edb10e3bf0fb1b
-rw-r--r--packaging/iotcon.spec2
-rw-r--r--src/ic-provisioning.c4
2 files changed, 5 insertions, 1 deletions
diff --git a/packaging/iotcon.spec b/packaging/iotcon.spec
index c886c0c..7225060 100644
--- a/packaging/iotcon.spec
+++ b/packaging/iotcon.spec
@@ -1,6 +1,6 @@
Name: iotcon
Summary: Tizen IoT Connectivity
-Version: 0.3.3
+Version: 0.3.4
Release: 0
Group: Network & Connectivity/Service
License: Apache-2.0
diff --git a/src/ic-provisioning.c b/src/ic-provisioning.c
index bd72e0c..92a4555 100644
--- a/src/ic-provisioning.c
+++ b/src/ic-provisioning.c
@@ -305,6 +305,10 @@ static gboolean _provisioning_register_unowned_device(gpointer p)
container = g_queue_pop_tail(icl_register_queue);
_provisioning_register_mutex_unlock();
+ if (NULL == container) {
+ ERR("container is NULL");
+ return G_SOURCE_CONTINUE;
+ }
dev_list = icl_provisioning_device_get_device(container->device);