From: Olivier Houchard Date: Fri, 20 Jun 2025 13:53:27 +0000 (+0200) Subject: MINOR: fwlc: Factorize code. X-Git-Tag: v3.3-dev2~30 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ba5738489f261d273b949828147164255c85ef4c;p=thirdparty%2Fhaproxy.git MINOR: fwlc: Factorize code. Always set unusable if we could not use a server, instead of doing it in each branch This should be backported to 3.2 after e28e647fef43e5865c87f328832fec7794a423e5 is backported. --- diff --git a/src/lb_fwlc.c b/src/lb_fwlc.c index 4a6d5bd64..ba2de9e41 100644 --- a/src/lb_fwlc.c +++ b/src/lb_fwlc.c @@ -806,10 +806,8 @@ redo: break; } avoided = s; - unusable++; } - else - unusable++; + unusable++; i++; } else if (mt_list.next == &tree_elt->srv_list[(i + orig_nb) % FWLC_LISTS_NB]) { i++;