BUG/MINOR: peers: avoid an infinite loop with peers_fe is NULL
authorWilliam Lallemand <wlallemand@haproxy.com>
Tue, 24 Mar 2020 15:42:15 +0000 (16:42 +0100)
committerWilly Tarreau <w@1wt.eu>
Tue, 31 Mar 2020 14:52:58 +0000 (16:52 +0200)
commit4907d7f6a13e403dea5a7bbb2e3a9923fa587807
treef114e37e98228bc2445cec931c5fd785d2495e16
parentf9009aea0de127ede6f73c0c84153c1c57303229
BUG/MINOR: peers: avoid an infinite loop with peers_fe is NULL

Fix an infinite loop which was added in an attempt to fix #558.
If the peers_fe is NULL, it will loop forever.

Must be backported with a2cfd7e as far as 1.8.

(cherry picked from commit 3ef2d565303af6dd7c24b62fdb22e43f1d1638bf)
Signed-off-by: Willy Tarreau <w@1wt.eu>
src/cfgparse.c