Browse Source

fixing OpenSecureChannelResponse: Settig timestamp, setting size of array to 0 #173

Stasik0 10 years ago
parent
commit
11e0c632aa
1 changed files with 3 additions and 0 deletions
  1. 3 0
      src/server/ua_securechannel_manager.c

+ 3 - 0
src/server/ua_securechannel_manager.c

@@ -62,6 +62,9 @@ UA_StatusCode UA_SecureChannelManager_open(UA_SecureChannelManager           *cm
     if(!entry) return UA_STATUSCODE_BADOUTOFMEMORY;
     UA_SecureChannel_init(&entry->channel);
 
+    response->responseHeader.stringTableSize = 0;
+    response->responseHeader.timestamp       = UA_DateTime_now();
+
     entry->channel.connection = conn;
     conn->channel = &entry->channel;
     entry->channel.securityToken.channelId       = cm->lastChannelId++;