Explorar o código

fix writing a <null>

Julius Pfrommer %!s(int64=10) %!d(string=hai) anos
pai
achega
1321f2e74d
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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)) {