Selaa lähdekoodia

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

ichrispa 9 vuotta sitten
vanhempi
commit
78a58a218d
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  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;