]> git.ipfire.org Git - thirdparty/haproxy.git/commit
[BUG] peers: don't keep a peers section which has a NULL frontend
authorWilly Tarreau <w@1wt.eu>
Wed, 7 Sep 2011 19:24:49 +0000 (21:24 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 7 Sep 2011 20:47:43 +0000 (22:47 +0200)
commit122541c06aa450e6b5c8b5c4724f342179fd0990
tree41dc937ef074f44d9f9ac909882c4cc62aef3204
parentce8fe259b59c3f1007b08a40667b8a641baab37e
[BUG] peers: don't keep a peers section which has a NULL frontend

If a peers section has no peer named as the local peer, we must destroy
it, otherwise a NULL peer frontend remains in the lists and a segfault
can happen upon a soft restart.

We also now report the missing peer name in order to help troubleshooting.
src/cfgparse.c