mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-02-14 17:37:46 +00:00
BUG/MINOR: ssl: crtlist_dup_filters() must return NULL with fcount == 0
crtlist_dup_filters() must return a NULL ptr if the fcount number is 0.
This bug was introduced by 2954c47
("MEDIUM: ssl: allow crt-list caching").
This commit is contained in:
parent
2445f8d4ec
commit
3c516fc989
@ -4656,6 +4656,9 @@ static char **crtlist_dup_filters(char **args, int fcount)
|
||||
char **dst;
|
||||
int i;
|
||||
|
||||
if (fcount == 0)
|
||||
return NULL;
|
||||
|
||||
dst = calloc(fcount + 1, sizeof(*dst));
|
||||
if (!dst)
|
||||
return NULL;
|
||||
|
Loading…
Reference in New Issue
Block a user