]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUG/MINOR: cfgparse: Add missing fatal++ in PARSE_ERR_HEX case
authorTim Duesterhus <tim@bastelstu.be>
Tue, 16 Jun 2020 16:14:21 +0000 (18:14 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 16 Jun 2020 16:25:40 +0000 (18:25 +0200)
This fixes up commit 32234e751320b60a3879f274d4a4753d7570e757. This
patch should be backported whereever that commit is backported.

src/cfgparse.c

index 9f44c7566bf7f4a2d50aad1dea51297838e1b623..fdbf3a4066dc5000328870a8cb8ee99093ce8a1d 100644 (file)
@@ -1955,6 +1955,7 @@ next_line:
                                ha_alert("parsing [%s:%d]: truncated or invalid hexadecimal sequence below:\n"
                                         "  %s\n  %*s\n", file, linenum, line, (int)(errptr-line+1), "^");
                                err_code |= ERR_ALERT | ERR_FATAL;
+                               fatal++;
                                goto next_line;
                        }