mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-11-14 15:31:00 +01:00
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.
This commit is contained in:
parent
a2cfd7e356
commit
3ef2d56530
@ -3911,11 +3911,10 @@ out_uri_auth_compat:
|
|||||||
stick-table used in the configuration, set its bind_proc
|
stick-table used in the configuration, set its bind_proc
|
||||||
by default to the first process. */
|
by default to the first process. */
|
||||||
while (curpeers) {
|
while (curpeers) {
|
||||||
if (!curpeers->peers_fe)
|
if (curpeers->peers_fe) {
|
||||||
continue;
|
if (curpeers->peers_fe->bind_proc == 0)
|
||||||
if (curpeers->peers_fe->bind_proc == 0)
|
curpeers->peers_fe->bind_proc = 1;
|
||||||
curpeers->peers_fe->bind_proc = 1;
|
}
|
||||||
|
|
||||||
curpeers = curpeers->next;
|
curpeers = curpeers->next;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user