BUG/MINOR: ssl/crt-list: exit on warning out of crtlist_parse_line()

We should not exits on error out of the crtlist_parse_line() function.
The cfgerr error must be checked with the ERR_CODE mask.

Must be backported in 2.2.
This commit is contained in:
William Lallemand 2020-09-28 15:45:16 +02:00
parent 25407965fd
commit 20b0fed28c

View File

@ -495,7 +495,7 @@ int crtlist_parse_file(char *file, struct bind_conf *bind_conf, struct proxy *cu
if (*(end - 1) == '\n')
*(end - 1) = '\0'; /* line parser mustn't receive any \n */
cfgerr |= crtlist_parse_line(thisline, &crt_path, entry, file, linenum, err);
if (cfgerr)
if (cfgerr & ERR_CODE)
goto error;
/* empty line */