summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNiraj Kumar Goit <niraj.g@samsung.com>2016-06-10 13:50:24 (GMT)
committerNiraj Kumar Goit <niraj.g@samsung.com>2016-06-10 13:50:24 (GMT)
commit0c5ab2959c0a22bbc2843d9c8c4a4c2e8040c3ad (patch)
tree75b8bd30af9dee86766c35949a4c778c7623255e
parentb164f3431bb96a71a465ef53b1f072ac2a9572cb (diff)
downloadconnman-0c5ab2959c0a22bbc2843d9c8c4a4c2e8040c3ad.zip
connman-0c5ab2959c0a22bbc2843d9c8c4a4c2e8040c3ad.tar.gz
connman-0c5ab2959c0a22bbc2843d9c8c4a4c2e8040c3ad.tar.bz2
[SPIN] Add NULL check to prevent crash.refs/changes/78/73978/1
Change-Id: I220440e73661004a61b8803d335c8c7a7ae11f6b Signed-off-by: Niraj Kumar Goit <niraj.g@samsung.com>
-rwxr-xr-xsrc/service.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/service.c b/src/service.c
index 5dab82c..11a510d 100755
--- a/src/service.c
+++ b/src/service.c
@@ -5144,6 +5144,10 @@ static void service_schedule_removed(struct connman_service *service)
static bool allow_property_changed(struct connman_service *service)
{
+#if defined TIZEN_EXT
+ if (service->path == NULL)
+ return FALSE;
+#endif
if (g_hash_table_lookup_extended(services_notify->add, service->path,
NULL, NULL)) {
DBG("no property updates for service %p", service);