ソースを参照

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