Return accurate error codes for error cases. 32/211032/5
authorSenthil Kumar G S <senthil.gs@samsung.com>
Wed, 17 Jul 2019 07:33:32 +0000 (13:03 +0530)
committerDoHyun Pyun <dh79.pyun@samsung.com>
Thu, 1 Aug 2019 23:57:27 +0000 (08:57 +0900)
commit1531cd30bf83757ba9dbcf4bea46439b1b7c7c70
treea720ed04e7375fc6388f187e713cb7147f98c5f3
parent5325e5f3cd9e3f98774c73fbb2342d8734ace7a5
Return accurate error codes for error cases.

1. Returning CA_MEMORY_ALLOC_FAILED instead of CA_STATUS_FAILED.
2. If request doesn't contain RequestURI/Proxy URI, then return OC_STACK_INVALID_URI.

https://github.sec.samsung.net/RS7-IOTIVITY/IoTivity/pull/545/commits/a2e9bce4cc70b63f9a82cce82970167126794e9a
(cherry-picked from ac207215d4c4550ad89c9b72ab81b859a83a0c2b)

Change-Id: Ib5f2b05dbc621ee8cc70ae9760a70b44a8c476f8
Signed-off-by: Senthil Kumar G S <senthil.gs@samsung.com>
Signed-off-by: Sudipto Bal <sudipto.bal@samsung.com>
resource/csdk/connectivity/src/camessagehandler.c
resource/csdk/stack/src/ocstack.c