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:
William Lallemand 2020-03-20 10:04:34 +01:00 committed by William Lallemand
parent 2445f8d4ec
commit 3c516fc989

View File

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