mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-02-22 21:56:55 +00:00
BUG/MINOR: config: fix typo in condition when propagating process binding
propagate_processes() has a typo in a condition : if (!from->cap & PR_CAP_FE) return; The return is never taken because each proxy has at least one capability so !from->cap always evaluates to zero. Most of the time the caller already checks that <from> is a frontend. In the cases where it's not tested (use_backend, reqsetbe), the rules have been checked for the context to be a frontend as well, so in the end it had no nasty side effect. This should be backported to 1.5.
This commit is contained in:
parent
d972203fbc
commit
8a95d8cd61
@ -6102,7 +6102,7 @@ void propagate_processes(struct proxy *from, struct proxy *to)
|
||||
from = to;
|
||||
}
|
||||
|
||||
if (!from->cap & PR_CAP_FE)
|
||||
if (!(from->cap & PR_CAP_FE))
|
||||
return;
|
||||
|
||||
/* default_backend */
|
||||
|
Loading…
Reference in New Issue
Block a user