projects
/
haproxy-2.5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
db67b0e
)
BUG/MINOR: cfgparse/server: increment the extra keyword counter one at a time
author
Willy Tarreau
<w@1wt.eu>
Fri, 12 Mar 2021 13:47:10 +0000
(14:47 +0100)
committer
Willy 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
patch
|
blob
|
history
diff --git
a/src/server.c
b/src/server.c
index
8b2dd4f
..
ed9925e
100644
(file)
--- 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)))