BUG/MINOR: config: don't propagate process binding on fatal errors.
authorWilly Tarreau <w@1wt.eu>
Wed, 1 Oct 2014 18:50:17 +0000 (20:50 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 1 Oct 2014 18:50:17 +0000 (20:50 +0200)
commitacbe8ab38a638a076f8cf9fe2635db0e729d6a1f
treee77b0724da11ee8e473e2f2b933d3f3f0da61023
parent4e21ff9244aefa56bcf0793a9e07edba2c3c1960
BUG/MINOR: config: don't propagate process binding on fatal errors.

propagate_processes() must not be called with unresolved proxies, but
nothing prevents it from being called in check_config_validity(). The
resulting effect is that an unresolved proxy can cause a recursion
loop if called in such a situation, ending with a segfault after the
fatal error report. There's no side effect beyond this.

This patch refrains from calling the function when any error was met.

This bug also affects 1.5, it should be backported.
src/cfgparse.c