소스 검색

Fixed invalid calcSizeBinary and UA_free statements leading to segfaults when multiple ChangeNotifications are send by a subscription.

ichrispa 10 년 전
부모
커밋
78a58a218d
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/server/ua_subscription_manager.h

+ 1 - 1
src/server/ua_subscription_manager.h

@@ -50,7 +50,7 @@ typedef struct UA_MonitoredItem_s {
     UA_UInt32_BoundedValue          QueueSize;
     UA_Boolean                      DiscardOldest;
     UA_DateTime                     LastSampled;
-    UA_ByteString                   *LastSeenValue;
+    UA_ByteString                   LastSampledValue;
     // FIXME: indexRange is ignored; array values default to element 0
     // FIXME: dataEncoding is hardcoded to UA binary
     LIST_ENTRY(UA_MonitoredItem_s)  listEntry;