From: Willy Tarreau Date: Fri, 12 Mar 2021 13:47:10 +0000 (+0100) Subject: BUG/MINOR: cfgparse/server: increment the extra keyword counter one at a time X-Git-Tag: v2.4-dev12~33 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=736adef511f34504907031944c2a53cc3e52e7d2;p=thirdparty%2Fhaproxy.git BUG/MINOR: cfgparse/server: increment the extra keyword counter one at a time This was introduced in previous commit 49c2b45c1 ("MINOR: cfgparse/server: try to fix spelling mistakes on server lines"), the loop was changed but the increment left. No backport is needed. --- diff --git a/src/server.c b/src/server.c index 8b2dd4f257..ed9925ecc3 100644 --- a/src/server.c +++ b/src/server.c @@ -335,7 +335,6 @@ static const char *srv_find_best_kw(const char *word) best_dist = dist; best_ptr = *extra; } - extra++; } if (best_dist > 2 * strlen(word) || (best_ptr && best_dist > 2 * strlen(best_ptr)))