瀏覽代碼

Fixed invalid results iteration for deleteMonitoredItems.

ichrispa 9 年之前
父節點
當前提交
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]);
 }