浏览代码

Fix response requestHandle in OpenSecureChannel (fix #1276)

Julius Pfrommer 7 年之前
父节点
当前提交
2f16cea42e
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      src/server/ua_securechannel_manager.c

+ 2 - 0
src/server/ua_securechannel_manager.c

@@ -168,6 +168,7 @@ UA_SecureChannelManager_open(UA_SecureChannelManager* cm, UA_SecureChannel *chan
     UA_ByteString_copy(&channel->localNonce, &response->serverNonce);
     UA_ChannelSecurityToken_copy(&channel->securityToken, &response->securityToken);
     response->responseHeader.timestamp = UA_DateTime_now();
+    response->responseHeader.requestHandle = request->requestHeader.requestHandle;
 
     // Now overwrite the creation date with the internal monotonic clock
     channel->securityToken.createdAt = UA_DateTime_nowMonotonic();
@@ -212,6 +213,7 @@ UA_SecureChannelManager_renew(UA_SecureChannelManager* cm, UA_SecureChannel *cha
                                    &channel->localNonce);
     UA_ByteString_copy(&channel->localNonce, &response->serverNonce);
     UA_ChannelSecurityToken_copy(&channel->nextSecurityToken, &response->securityToken);
+    response->responseHeader.requestHandle = request->requestHeader.requestHandle;
 
     /* reset the creation date to the monotonic clock */
     channel->nextSecurityToken.createdAt = UA_DateTime_nowMonotonic();