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)
committerWilliam Lallemand <wlallemand@haproxy.org>
Tue, 24 Mar 2020 15:45:53 +0000 (16:45 +0100)
commit3ef2d565303af6dd7c24b62fdb22e43f1d1638bf
tree85402572f8460466b58f4b10eeb15081429c385c
parenta2cfd7e356f4d744294b510b05d88bf58304db25
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.
src/cfgparse.c