mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-08-06 23:27:04 +02:00
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:
parent
25407965fd
commit
20b0fed28c
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user