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.
This commit is contained in:
William Lallemand 2020-04-02 12:02:54 +02:00 committed by William Lallemand
parent b7e43f0cab
commit a690fed5be

View File

@ -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;