소스 검색

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