mirror of
https://github.com/haproxy/haproxy.git
synced 2026-03-28 05:14:56 -04: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
1 changed files with 3 additions and 0 deletions
|
|
@ -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 a new issue