Explorar o código

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

ichrispa %!s(int64=10) %!d(string=hai) anos
pai
achega
78a58a218d
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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;