mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-11-29 14:50:59 +01:00
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:
parent
b7e43f0cab
commit
a690fed5be
@ -11400,6 +11400,7 @@ static int cli_parse_add_crtlist(char **args, char *payload, struct appctx *appc
|
|||||||
memprintf(&err, "Not enough memory!");
|
memprintf(&err, "Not enough memory!");
|
||||||
goto error;
|
goto error;
|
||||||
}
|
}
|
||||||
|
entry->fcount = 0;
|
||||||
entry->filters = NULL;
|
entry->filters = NULL;
|
||||||
entry->ssl_conf = NULL;
|
entry->ssl_conf = NULL;
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user