Re: [PATCH] BUG/MINOR: cfgparse: Add missing fatal++ in PARSE_ERR_HEX case

2020-06-16 Thread Willy Tarreau
On Tue, Jun 16, 2020 at 06:14:21PM +0200, Tim Duesterhus wrote:
> This fixes up commit 32234e751320b60a3879f274d4a4753d7570e757. This
> patch should be backported whereever that commit is backported.

Ah good catch, thank you Tim! I was worried that some deeper functions
were missing the ERR_FATAL flag, which is still possible but at least
that mistake from me is easier to address!

Willy



[PATCH] BUG/MINOR: cfgparse: Add missing fatal++ in PARSE_ERR_HEX case

2020-06-16 Thread Tim Duesterhus
This fixes up commit 32234e751320b60a3879f274d4a4753d7570e757. This
patch should be backported whereever that commit is backported.
---
 src/cfgparse.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/cfgparse.c b/src/cfgparse.c
index 9f44c7566..fdbf3a406 100644
--- a/src/cfgparse.c
+++ b/src/cfgparse.c
@@ -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;
}
 
-- 
2.27.0