Fix callback issue which there is no payload in case of error message.
authorjihwan.seo <jihwan.seo@samsung.com>
Fri, 10 Feb 2017 04:24:24 +0000 (13:24 +0900)
committerAshok Babu Channa <ashok.channa@samsung.com>
Mon, 13 Feb 2017 10:41:45 +0000 (10:41 +0000)
commitb6a32d371a3e13ae8618d23dc0e2b559c26fc262
treed7ad2aad411ac1e6d692f39985af03d9460c6910
parent5383ff90caccfca740aa1d4d6ecd92d63ffa60d6
Fix callback issue which there is no payload in case of error message.

check logic what payload is parsed was modified in
https://gerrit.iotivity.org/gerrit/#/c/15197/.
However that change cause some issue which
there is no payload in case of error message
with general get/put/post/delete message except for oic/res.

payload should be set in common in OCHandleResponse method.

Change-Id: I0c415022e35573ae76e730d9973206d218f18174
Signed-off-by: jihwan.seo <jihwan.seo@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/17165
Tested-by: jenkins-iotivity <jenkins@iotivity.org>
Reviewed-by: Jaehong Jo <jaehong.jo@samsung.com>
Reviewed-by: Habib Virji <habib.virji@samsung.com>
Reviewed-by: Ashok Babu Channa <ashok.channa@samsung.com>
resource/csdk/stack/src/ocstack.c