Skip to content

Commit c4aec7a

Browse files
Olivier Houcharda-denoyelle
authored andcommitted
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.
1 parent 658eaa4 commit c4aec7a

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

src/cfgparse.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4308,6 +4308,13 @@ int check_config_validity()
43084308
goto init_proxies_list_stage2;
43094309
}
43104310

4311+
if (init_proxies_list == cfg_log_forward) {
4312+
init_proxies_list = sink_proxies_list;
4313+
/* check if list is not null to avoid infinite loop */
4314+
if (init_proxies_list)
4315+
goto init_proxies_list_stage2;
4316+
}
4317+
43114318
/*
43124319
* Recount currently required checks.
43134320
*/

0 commit comments

Comments
 (0)