Explorar el Código

Also check the namespace index for a valid service type

Stefan Profanter hace 7 años
padre
commit
fcb0930719
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      src/server/ua_server_binary.c

+ 2 - 1
src/server/ua_server_binary.c

@@ -380,7 +380,8 @@ processMSG(UA_Server *server, UA_SecureChannel *channel,
     UA_StatusCode retval = UA_NodeId_decodeBinary(msg, &offset, &requestTypeId);
     if(retval != UA_STATUSCODE_GOOD)
         return retval;
-    if(requestTypeId.identifierType != UA_NODEIDTYPE_NUMERIC)
+    if(requestTypeId.namespaceIndex != 0 ||
+       requestTypeId.identifierType != UA_NODEIDTYPE_NUMERIC)
         UA_NodeId_deleteMembers(&requestTypeId); /* leads to badserviceunsupported */
 
     /* Store the start-position of the request */