소스 검색

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

Julius Pfrommer 8 년 전
부모
커밋
2a127dc9e3
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  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;