BUG/MEDIUM: config: do not propagate processes between stopped processes

Immo Goltz reported a case of segfault while parsing the config where
we try to propagate processes across stopped frontends (those with a
"disabled" statement). The fix is trivial. The workaround consists in
commenting out these frontends, although not always easy.

This fix must be backported to 1.5.
This commit is contained in:
Willy Tarreau 2014-12-18 14:00:43 +01:00
parent 8a95d8cd61
commit f6b7001338

View File

@ -6105,6 +6105,9 @@ void propagate_processes(struct proxy *from, struct proxy *to)
if (!(from->cap & PR_CAP_FE))
return;
if (from->state == PR_STSTOPPED)
return;
/* default_backend */
if (from->defbe.be)
propagate_processes(from, from->defbe.be);