projects
/
haproxy-2.5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2445f8d
)
BUG/MINOR: ssl: crtlist_dup_filters() must return NULL with fcount == 0
author
William Lallemand
<wlallemand@haproxy.com>
Fri, 20 Mar 2020 09:04:34 +0000
(10:04 +0100)
committer
William Lallemand
<wlallemand@haproxy.org>
Fri, 20 Mar 2020 09:10:25 +0000
(10:10 +0100)
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").
src/ssl_sock.c
patch
|
blob
|
history
diff --git
a/src/ssl_sock.c
b/src/ssl_sock.c
index
ea513b2
..
e5cee53
100644
(file)
--- a/
src/ssl_sock.c
+++ b/
src/ssl_sock.c
@@
-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;