Parcourir la source

Fixed invalid results iteration for deleteMonitoredItems.

ichrispa il y a 9 ans
Parent
commit
0f66bc80e0
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      src/server/ua_services_subscription.c

+ 1 - 1
src/server/ua_services_subscription.c

@@ -232,6 +232,6 @@ void Service_DeleteMonitoredItems(UA_Server *server, UA_Session *session,
 
     response->resultsSize = request->monitoredItemIdsSize;
     for(int i=0; i < request->monitoredItemIdsSize; i++)
-        resultCodes[i] = SubscriptionManager_deleteMonitoredItem(manager, sub->SubscriptionID,
+        response->results[i] = SubscriptionManager_deleteMonitoredItem(manager, sub->SubscriptionID,
                                                                  request->monitoredItemIds[i]);
 }