BUG/MINOR: ssl: Correctly add the 1 for the sentinel to the number of elements

In `crtlist_dup_filters()` add the `1` to the number of elements instead of
the size of a single element.

This bug was introduced in commit 2954c478eb,
which is 2.2+. No backport needed.
This commit is contained in:
Tim Duesterhus 2020-03-19 16:12:10 +01:00 committed by William Lallemand
parent 8c12025a7d
commit 2445f8d4ec

View File

@ -4656,7 +4656,7 @@ static char **crtlist_dup_filters(char **args, int fcount)
char **dst;
int i;
dst = calloc(fcount, sizeof(*dst) + 1);
dst = calloc(fcount + 1, sizeof(*dst));
if (!dst)
return NULL;