RM fix for JIRA issue [1342]
authorAbhishek Sharma <ce.abhishek@samsung.com>
Tue, 27 Sep 2016 11:56:04 +0000 (17:26 +0530)
committerAshok Babu Channa <ashok.channa@samsung.com>
Wed, 28 Sep 2016 07:36:58 +0000 (07:36 +0000)
https://jira.iotivity.org/browse/IOT-1342

Change-Id: I80a8d442f93ac0f197029f32bc0918b668c2d708
Signed-off-by: Abhishek Sharma <ce.abhishek@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/12325
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Ashok Babu Channa <ashok.channa@samsung.com>
(cherry picked from commit ae853c37baacf270d2ca1de192f21dbe63b1384e)
Reviewed-on: https://gerrit.iotivity.org/gerrit/12383

resource/csdk/routing/src/routingmanager.c

index eb465e1..c382167 100644 (file)
@@ -1171,6 +1171,7 @@ rewriteandexit:
             if(isRequest)
             {
                 CARequestInfo_t *msg = message;
+                msg->info.dataType = CA_REQUEST_DATA;
                 CAResult_t caRes = CASendRequest(&nextHop, msg);
                 if (CA_STATUS_OK != caRes)
                 {
@@ -1190,6 +1191,7 @@ rewriteandexit:
             else
             {
                 CAResponseInfo_t *msg = message;
+                msg->info.dataType = CA_RESPONSE_DATA;
                 CAResult_t caRes = CASendResponse(&nextHop, msg);
                 if (CA_STATUS_OK != caRes)
                 {