Explorar o código

Fixed attachMethod_toNode not returning statuscodes produced by NodeStore_replace

ichrispa %!s(int64=9) %!d(string=hai) anos
pai
achega
b44616d168
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/server/ua_server_addressspace.c

+ 1 - 1
src/server/ua_server_addressspace.c

@@ -468,7 +468,7 @@ UA_Server_attachMethod_toNode(UA_Server *server, UA_NodeId methodNodeId, UA_Meth
     UA_NodeStore_release(attachToMethod);
     
     replacementMethod->attachedMethod = method;
-    UA_NodeStore_replace(server->nodestore, attachToMethod, (UA_Node *) replacementMethod, UA_NULL);
+    retval |= UA_NodeStore_replace(server->nodestore, attachToMethod, (UA_Node *) replacementMethod, UA_NULL);
     return retval;
 }
 #endif