Просмотр исходного кода

Fixed invalid results iteration for deleteMonitoredItems.

ichrispa лет назад: 9
Родитель
Сommit
0f66bc80e0
1 измененных файлов с 1 добавлено и 1 удалено
  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]);
 }