Sfoglia il codice sorgente

Fixed invalid results iteration for deleteMonitoredItems.

ichrispa 9 anni fa
parent
commit
0f66bc80e0
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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;
     response->resultsSize = request->monitoredItemIdsSize;
     for(int i=0; i < request->monitoredItemIdsSize; i++)
     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]);
                                                                  request->monitoredItemIds[i]);
 }
 }