From: Olivier Houchard Date: Thu, 17 Apr 2025 15:16:44 +0000 (+0200) Subject: MINOR: proxies: Do stage2 initialization for sinks too X-Git-Tag: v3.2-dev11~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c4aec7a52fc56779a295e5291973ad2cd85104cb;p=thirdparty%2Fhaproxy.git 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. --- 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 @@ init_proxies_list_stage2: 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. */