Преглед изворни кода

Fixed attachMethod_toNode not returning statuscodes produced by NodeStore_replace

ichrispa пре 9 година
родитељ
комит
b44616d168
1 измењених фајлова са 1 додато и 1 уклоњено
  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