The master is re-exec with an empty proxies list if no master CLI is
configured.
This results in infinite loop since last patch:
3b68b602 ("BUG/MAJOR: log-forward: Fix log-forward proxies not fully initialized")
This patch avoid to loop again on log-forward proxies list if empty.
This patch should be backported until v2.3
*/
if (init_proxies_list == proxies_list) {
init_proxies_list = cfg_log_forward;
- goto init_proxies_list_stage1;
+ /* check if list is not null to avoid infinite loop */
+ if (init_proxies_list)
+ goto init_proxies_list_stage1;
}
/***********************************************************/
*/
if (init_proxies_list == proxies_list) {
init_proxies_list = cfg_log_forward;
- goto init_proxies_list_stage2;
+ /* check if list is not null to avoid infinite loop */
+ if (init_proxies_list)
+ goto init_proxies_list_stage2;
}
if (diag_no_cluster_secret)