From c75af6bf7d2715d7a9e4c0406c5aa6558ab0cefa Mon Sep 17 00:00:00 2001 From: Tobias Rauter Date: Thu, 7 Jan 2016 16:42:51 +0100 Subject: [PATCH] Add cloning of identity to CACloneInfo In block-transfer mode, the identity was not set in the resulting CARequestInfo. Therefore, ACLs did not work properly. Change-Id: Ie47ee8f18bc3c914c0a662656b42cbf03cadc0fc Signed-off-by: Tobias Rauter Reviewed-on: https://gerrit.iotivity.org/gerrit/4771 Tested-by: jenkins-iotivity Reviewed-by: Jon A. Cruz --- resource/csdk/connectivity/common/src/caremotehandler.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/resource/csdk/connectivity/common/src/caremotehandler.c b/resource/csdk/connectivity/common/src/caremotehandler.c index 1315dae..61a2509 100644 --- a/resource/csdk/connectivity/common/src/caremotehandler.c +++ b/resource/csdk/connectivity/common/src/caremotehandler.c @@ -281,6 +281,8 @@ CAResult_t CACloneInfo(const CAInfo_t *info, CAInfo_t *clone) clone->numOptions = info->numOptions; } + memcpy(&(clone->identity), &(info->identity), sizeof(info->identity)); + if ((info->payload) && (0 < info->payloadSize)) { // allocate payload field -- 2.7.4