From c4aec7a52fc56779a295e5291973ad2cd85104cb Mon Sep 17 00:00:00 2001 From: Olivier Houchard Date: Thu, 17 Apr 2025 17:16:44 +0200 Subject: [PATCH] MINOR: proxies: Do stage2 initialization for sinks too In check_config_validity(), we initialize the proxy in several stages. We do so for the sink list for stage1, but not for stage2. It may not be needed right now, but it may become needed in the future, so do it anyway. --- src/cfgparse.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/cfgparse.c b/src/cfgparse.c index 9c567d936..7716b6cd5 100644 --- a/src/cfgparse.c +++ b/src/cfgparse.c @@ -4308,6 +4308,13 @@ int check_config_validity() goto init_proxies_list_stage2; } + if (init_proxies_list == cfg_log_forward) { + init_proxies_list = sink_proxies_list; + /* check if list is not null to avoid infinite loop */ + if (init_proxies_list) + goto init_proxies_list_stage2; + } + /* * Recount currently required checks. */