From 20b0fed28cc0e5d890dc441ffc73b95ceb25c8d2 Mon Sep 17 00:00:00 2001 From: William Lallemand Date: Mon, 28 Sep 2020 15:45:16 +0200 Subject: [PATCH] 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. --- src/ssl_crtlist.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ssl_crtlist.c b/src/ssl_crtlist.c index f7007efc6..fd141fc50 100644 --- a/src/ssl_crtlist.c +++ b/src/ssl_crtlist.c @@ -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 */