mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-01-14 17:50:48 +00:00
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:
parent
8c12025a7d
commit
2445f8d4ec
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user