Explorar o código

fix: set correct length of the stack-allocated comparison encoding

Julius Pfrommer %!s(int64=8) %!d(string=hai) anos
pai
achega
2a127dc9e3
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      src/server/ua_subscription.c

+ 1 - 0
src/server/ua_subscription.c

@@ -105,6 +105,7 @@ detectValueChange(UA_MonitoredItem *mon, UA_DataValue *value,
         goto cleanup;
 
     /* The value has changed */
+    encoding->length = encodingOffset;
     if(!mon->lastSampledValue.data || !UA_String_equal(encoding, &mon->lastSampledValue))
         *changed = true;