From: Willy Tarreau Date: Fri, 15 May 2026 08:38:18 +0000 (+0000) Subject: CLEANUP: proxy: fix tiny mistakes in parse error messages X-Git-Tag: v3.4-dev13~73 X-Git-Url: http://git.ipfire.org/gitweb/index.cgi?a=commitdiff_plain;h=b6bd6f5b9a0a6778f3c7f3ec4b04b57ed8c587e8;p=thirdparty%2Fhaproxy.git CLEANUP: proxy: fix tiny mistakes in parse error messages One is s/keyworld/keyword in the retry-on parser. The other one is a wrong argument "len" being printed in case of parse error for "declare capture" instead of the length itself. These can be backported though they are not important. --- diff --git a/src/proxy.c b/src/proxy.c index 3ac67464f..dab4c5e9a 100644 --- a/src/proxy.c +++ b/src/proxy.c @@ -903,7 +903,7 @@ static int proxy_parse_declare(char **args, int section, struct proxy *curpx, len = strtol(args[4], &error, 10); if (*error != '\0') { memprintf(err, "'%s %s': cannot parse the length '%s'.", - args[0], args[1], args[3]); + args[0], args[1], args[4]); return -1; } @@ -1006,7 +1006,7 @@ proxy_parse_retry_on(char **args, int section, struct proxy *curpx, PR_RE_JUNK_REQUEST; else if (strcmp(args[i], "none") == 0) { if (i != 1 || *args[i + 1]) { - memprintf(err, "'%s' 'none' keyworld only usable alone", args[0]); + memprintf(err, "'%s' 'none' keyword only usable alone", args[0]); return -1; } } else {