[IOT-1445] Add ins value when publishing a resource to rd
authorhyuna0213.jo <hyuna0213.jo@samsung.com>
Wed, 12 Oct 2016 10:22:48 +0000 (19:22 +0900)
committerAshok Babu Channa <ashok.channa@samsung.com>
Mon, 24 Oct 2016 06:07:44 +0000 (06:07 +0000)
commitbf9d03f2d0187e501c84221a197d12052f4cb648
tree3c56e7f856b0412f40863f87f394d21fa10664d2
parent06f895a7cad6009950240e3f307651e3dbd992e5
[IOT-1445] Add ins value when publishing a resource to rd

The ins value has to be included when publishing a resource
to resource-directory. Otherwise resource-directory will
return error code.
Currently, The ins is not included because the return value
of OCGetResourceIns() was not checked properly.

Change-Id: I11b1f405e000f36bb76ca7d24c8dbbbd6e7586fe
Signed-off-by: hyuna0213.jo <hyuna0213.jo@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/13159
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Ashok Babu Channa <ashok.channa@samsung.com>
(cherry picked from commit b5d331d2d779172bceebb9b92cc73eecc6d6cdae)
Reviewed-on: https://gerrit.iotivity.org/gerrit/13225
resource/csdk/resource-directory/src/rd_client.c