mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-02-16 10:36:55 +00:00
BUG/MINOR: config: don't propagate process binding for dynamic use_backend
A segfault was reported with the introduction of the propagate_processes() function. It was caused when a use_backend rule was declared with a dynamic name, using a log-format string. The backend is not resolved during the configuration, which lead to the segfault. The patch prevents the process binding propagation for such dynamic rules, it should also be backported to 1.5.
This commit is contained in:
parent
213c678561
commit
51639696e0
@ -6067,6 +6067,8 @@ void propagate_processes(struct proxy *from, struct proxy *to)
|
||||
|
||||
/* use_backend */
|
||||
list_for_each_entry(rule, &from->switching_rules, list) {
|
||||
if (rule->dynamic)
|
||||
continue;
|
||||
to = rule->be.backend;
|
||||
propagate_processes(from, to);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user