diff --git a/src/cfgparse.c b/src/cfgparse.c index 90825c067..7f11bf884 100644 --- a/src/cfgparse.c +++ b/src/cfgparse.c @@ -5948,8 +5948,9 @@ int check_config_validity() /* we force the backend to be present on at least all of * the frontend's processes. */ - target->bind_proc = curproxy->bind_proc ? - (target->bind_proc | curproxy->bind_proc) : 0; + if (target->bind_proc) + target->bind_proc = curproxy->bind_proc ? + (target->bind_proc | curproxy->bind_proc) : 0; /* Emit a warning if this proxy also has some servers */ if (curproxy->srv) { @@ -5985,8 +5986,9 @@ int check_config_validity() /* we force the backend to be present on at least all of * the frontend's processes. */ - target->bind_proc = curproxy->bind_proc ? - (target->bind_proc | curproxy->bind_proc) : 0; + if (target->bind_proc) + target->bind_proc = curproxy->bind_proc ? + (target->bind_proc | curproxy->bind_proc) : 0; } } } @@ -6038,8 +6040,9 @@ int check_config_validity() /* we force the backend to be present on at least all of * the frontend's processes. */ - target->bind_proc = curproxy->bind_proc ? - (target->bind_proc | curproxy->bind_proc) : 0; + if (target->bind_proc) + target->bind_proc = curproxy->bind_proc ? + (target->bind_proc | curproxy->bind_proc) : 0; } }