Parcourir la source

fix writing a <null>

Julius Pfrommer il y a 10 ans
Parent
commit
1321f2e74d
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      src/server/ua_services_attribute.c

+ 1 - 1
src/server/ua_services_attribute.c

@@ -394,7 +394,7 @@ static UA_StatusCode writeValue(UA_Server *server, UA_WriteValue *wvalue) {
                 // array sizes are not compared
 
                 if(!wvalue->value.hasVariant) {
-                    retval = UA_STATUSCODE_BADWRITENOTSUPPORTED;
+                    retval = UA_STATUSCODE_BADTYPEMISMATCH;
                     break;
                 }
                 if(!UA_NodeId_equal(&vn->variable.variant.type->typeId, &wvalue->value.value.type->typeId)) {