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