Browse Source

Merge branch 'master' of https://github.com/open62541/open62541

ichrispa 9 years ago
parent
commit
be8e96f27c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/server/ua_services_nodemanagement.c

+ 1 - 1
src/server/ua_services_nodemanagement.c

@@ -465,7 +465,7 @@ void Service_AddNodes_single(UA_Server *server, UA_Session *session, const UA_Ad
         node = objectTypeNodeFromAttributes(item, item->nodeAttributes.content.decoded.data);
         break;
     case UA_NODECLASS_VARIABLETYPE:
-        if(item->nodeAttributes.content.decoded.type != &UA_TYPES[UA_TYPES_OBJECTTYPEATTRIBUTES]) {
+        if(item->nodeAttributes.content.decoded.type != &UA_TYPES[UA_TYPES_VARIABLETYPEATTRIBUTES]) {
             result->statusCode = UA_STATUSCODE_BADNODEATTRIBUTESINVALID;
             return;
         }