diff options
author | Jooseok Park <jooseok.park@samsung.com> | 2016-12-06 19:09:53 +0900 |
---|---|---|
committer | Jooseok Park <jooseok.park@samsung.com> | 2016-12-06 19:10:47 +0900 |
commit | c4d0bb4011057f35bc1e1108e061f947c790103d (patch) | |
tree | 9e8e8477428c5ba00145a7e3b8c896059d5b91e1 | |
parent | cabb4e748440c4266e450cde8ef1c4c02fd58b42 (diff) | |
download | iotcon-c4d0bb4011057f35bc1e1108e061f947c790103d.tar.gz iotcon-c4d0bb4011057f35bc1e1108e061f947c790103d.tar.bz2 iotcon-c4d0bb4011057f35bc1e1108e061f947c790103d.zip |
fix svace issuesubmit/tizen_3.0/20161207.005933submit/tizen_3.0/20161206.102149accepted/tizen/3.0/wearable/20161207.065905accepted/tizen/3.0/wearable/20161207.013049accepted/tizen/3.0/tv/20161207.065848accepted/tizen/3.0/tv/20161207.013027accepted/tizen/3.0/mobile/20161207.065825accepted/tizen/3.0/mobile/20161207.013011accepted/tizen/3.0/ivi/20161207.065927accepted/tizen/3.0/ivi/20161207.013107accepted/tizen/3.0/common/20161207.195011
- add container null check
Change-Id: Iea2cb26e759da38e030101c333edb10e3bf0fb1b
-rw-r--r-- | packaging/iotcon.spec | 2 | ||||
-rw-r--r-- | src/ic-provisioning.c | 4 |
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); |