|
@@ -222,8 +222,13 @@ static void processMSG(UA_Connection *connection, UA_Server *server, const UA_By
|
|
|
UA_SequenceHeader sequenceHeader;
|
|
|
retval = UA_UInt32_decodeBinary(msg, pos, &tokenId);
|
|
|
retval |= UA_SequenceHeader_decodeBinary(msg, pos, &sequenceHeader);
|
|
|
+#ifndef EXTENSION_STATELESS
|
|
|
if(retval != UA_STATUSCODE_GOOD || tokenId == 0) // 0 is invalid
|
|
|
return;
|
|
|
+#else
|
|
|
+ if(retval != UA_STATUSCODE_GOOD)
|
|
|
+ return;
|
|
|
+#endif
|
|
|
|
|
|
if(clientChannel != &anonymousChannel && tokenId != clientChannel->securityToken.tokenId) {
|
|
|
if(tokenId != clientChannel->nextSecurityToken.tokenId) {
|