- moved remove-method to iterator
[strongswan.git] / Source / charon / utils / logger_manager.c
index 0bd7e18..b145b27 100644 (file)
@@ -257,7 +257,7 @@ static status_t destroy_logger (private_logger_manager_t *this,logger_t *logger)
                status = NOT_FOUND;
                if (entry->logger == logger)
                {
-                       this->loggers->remove(this->loggers,iterator);
+                       iterator->remove(iterator);
                        allocator_free(entry);
                        logger->destroy(logger);
                        status = SUCCESS;