Fixed OCCreateResource return type when empty URI is passed
authorYuliya Kamatkova <yuliya.kamatkova@intel.com>
Fri, 12 Dec 2014 17:59:53 +0000 (12:59 -0500)
committerYuliya Kamatkova <yuliya.kamatkova@intel.com>
Fri, 12 Dec 2014 18:07:53 +0000 (13:07 -0500)
commit80b4416e37406c9a87a7ef6e00a1428d88e2e348
treea08f372271ae72430d69c73b72a15779f89e5234
parent808263666b46ebf782b802c41d2b283a37a66a7d
Fixed OCCreateResource return type when empty URI is passed

Defect IOT-109: OCCreateResource in the C SDK previously allowed empty URI.

The defect was fixed: OCCreateResource returns error status OC_STACK_INVALID_URI
if empty URI string is passed

Note: There are other places in code where only NULL check is performed
for URIs however empty string check is not performed.

Change-Id: Ia23fd2be20677614f267c73160ebefc56a5e6d71
Signed-off-by: Yuliya Kamatkova <yuliya.kamatkova@intel.com>
resource/csdk/stack/src/ocstack.c