[IOT-1570] fixed a crash issue related to block-wise transfer
authorJaewook Jung <jw0213.jung@samsung.com>
Thu, 17 Nov 2016 04:14:43 +0000 (13:14 +0900)
committerAshok Babu Channa <ashok.channa@samsung.com>
Fri, 18 Nov 2016 08:33:37 +0000 (08:33 +0000)
commit18159a0847ac86fc619b4335d576ddfdafe6ed75
treeb9324389c5a3515dd42336d5de80d53f6653bc33
parent7b7e5a97b1acdf4a265915bd4eaf745dd8262b03
[IOT-1570] fixed a crash issue related to block-wise transfer

When a resource server receives 4.08 error response from a resource
client, the server will try to send the response from the first
block again.
But now, the server assumes the message type that has to be sent
for receiving 4.08 error is only request message.
So I modified to handle it up to the message type.

Change-Id: I555b5dd5c44b73647c2543de551aba6f5113f909
Signed-off-by: Jaewook Jung <jw0213.jung@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/14433
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Ashok Babu Channa <ashok.channa@samsung.com>
(cherry picked from commit 4667f8b18e45b67022a0dc0966ad85c572d52f53)
Reviewed-on: https://gerrit.iotivity.org/gerrit/14439
Reviewed-by: Uze Choi <uzchoi@samsung.com>
resource/csdk/connectivity/src/cablockwisetransfer.c