Browse Source

fix multithreading

Julius Pfrommer 9 years ago
parent
commit
4262f4f9ac
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/server/ua_services_attribute.c

+ 1 - 1
src/server/ua_services_attribute.c

@@ -502,7 +502,7 @@ UA_StatusCode Service_Write_single(UA_Server *server, UA_Session *session, UA_Wr
     UA_Node *editable = (UA_Node*)(uintptr_t)orig;
 #else
     UA_Node *editable = UA_Node_copyAnyNodeClass(orig);
-    if(!new) {
+    if(!editable) {
         UA_NodeStore_release(orig);
         return UA_STATUSCODE_BADOUTOFMEMORY;
     }