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.
stick-table used in the configuration, set its bind_proc
by default to the first process. */
while (curpeers) {
- if (!curpeers->peers_fe)
- continue;
- if (curpeers->peers_fe->bind_proc == 0)
- curpeers->peers_fe->bind_proc = 1;
-
+ if (curpeers->peers_fe) {
+ if (curpeers->peers_fe->bind_proc == 0)
+ curpeers->peers_fe->bind_proc = 1;
+ }
curpeers = curpeers->next;
}