From a690fed5bef913d245f07d21789472f1db7959d8 Mon Sep 17 00:00:00 2001 From: William Lallemand Date: Thu, 2 Apr 2020 12:02:54 +0200 Subject: [PATCH] BUG/MINOR: ssl/cli: initialize fcount int crtlist_entry Initialize fcount to 0 when 'add ssl crt-list' does not contain any filters. This bug can lead to trying to read some filters even if they doesn't exist. --- src/ssl_sock.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ssl_sock.c b/src/ssl_sock.c index 7be6d1c..bf6205f 100644 --- a/src/ssl_sock.c +++ b/src/ssl_sock.c @@ -11400,6 +11400,7 @@ static int cli_parse_add_crtlist(char **args, char *payload, struct appctx *appc memprintf(&err, "Not enough memory!"); goto error; } + entry->fcount = 0; entry->filters = NULL; entry->ssl_conf = NULL; -- 1.7.10.4