Fix bug for prevent crash when access null pointer string.
authorKIM JungYong <jyong2.kim@samsung.com>
Fri, 19 Aug 2016 13:04:18 +0000 (22:04 +0900)
committerUze Choi <uzchoi@samsung.com>
Fri, 19 Aug 2016 13:58:11 +0000 (13:58 +0000)
commit55ffd24604bbf1ad00f95e8c4bbdb7a47d3a909d
treee4f85d057895f6267d427e3cb162d2eb7a7502fc
parent85aea97b70183f9fff350b1b108bd1846ba6025c
Fix bug for prevent crash when access null pointer string.

When consumer receive responce of discovery,
we was compare uri of discovered resource with "notification".
But, sometime uri of discovered resource was null,
consumer service occur crash.
In this patch, protection code is added in discover result handling logic.

Change-Id: I9006a36874ea9e282031aa7f95609ac3ac307f02
Signed-off-by: KIM JungYong <jyong2.kim@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/10675
Reviewed-by: Chihyun Cho <ch79.cho@samsung.com>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
Tested-by: Uze Choi <uzchoi@samsung.com>
service/notification/src/consumer/NSConsumerDiscovery.c