]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUG/MINOR: cfgparse/server: increment the extra keyword counter one at a time
authorWilly Tarreau <w@1wt.eu>
Fri, 12 Mar 2021 13:47:10 +0000 (14:47 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 12 Mar 2021 13:47:10 +0000 (14:47 +0100)
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.

src/server.c

index 8b2dd4f25781f145acc1ce7483527e7b926c0991..ed9925ecc3d973a7fd8533328882496f3fb05a00 100644 (file)
@@ -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)))