Return correct error code when server stack fails.
authorMandeep Shetty <mandeep.shetty@intel.com>
Mon, 13 Apr 2015 23:58:45 +0000 (16:58 -0700)
committerErich Keane <erich.keane@intel.com>
Tue, 14 Apr 2015 16:44:03 +0000 (16:44 +0000)
commit594a805abc62cd0f15c3df4ae0c39d091c4e4613
tree3625e55055c22755493cca4df3823fff6d8c4095
parent74970c5fa9dbf29cae9a980fb8190bf3ca76f66d
Return correct error code when server stack fails.

Previously we supressed all stack level errors to OC_STACK_ERROR even
though there are more specific errors available. Also, we always sent
out CA_BAD_REQ causing the client to think it was always its fault.

Change-Id: I225558365c7aa7ba7ad09156f5f857f8effc1490
Signed-off-by: Mandeep Shetty <mandeep.shetty@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/710
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Sakthivel Samidurai <sakthivel.samidurai@intel.com>
Reviewed-by: Erich Keane <erich.keane@intel.com>
resource/csdk/stack/src/ocstack.c