]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: proxy: ignore stopped peers
authorWilly Tarreau <w@1wt.eu>
Mon, 28 Sep 2015 14:27:44 +0000 (16:27 +0200)
committerWilly Tarreau <w@1wt.eu>
Mon, 28 Sep 2015 14:27:44 +0000 (16:27 +0200)
commit337a6665724769929a1eb2039f03ce8c31e9e7db
treee5719622e9c61b3f4c60be0c500916c6830ca4a3
parent61add3c064a63e67fcac744f1c1bf42383074398
BUG/MEDIUM: proxy: ignore stopped peers

Since commit f83d3fe ("MEDIUM: init: stop any peers section not bound
to the correct process"), it is possible to stop unused peers on certain
processes. The problem is that the pause/resume/stop functions are not
aware of this and will pass a NULL proxy pointer to the respective
functions, resulting in segfaults in unbound processes during soft
restarts.

Properly check that the peers' frontend is still valid before calling
them.

This bug also affects 1.5 so the fix must be backported. Note that this
fix is not enough to completely get rid of the segfault, the next one
is needed as well.
src/proxy.c