commit | 3c516fc989b32a4ef764e595b5453646fa8521b1 | [log] [tgz] |
---|---|---|
author | William Lallemand <wlallemand@haproxy.com> | Fri Mar 20 10:04:34 2020 +0100 |
committer | William Lallemand <wlallemand@haproxy.org> | Fri Mar 20 10:10:25 2020 +0100 |
tree | 39593fdd62dc76670954f775daca27bd178fd007 | |
parent | 2445f8d4ec16d7dbd04301c0e37eef9550313ab4 [diff] [blame] |
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").
diff --git a/src/ssl_sock.c b/src/ssl_sock.c index ea513b2..e5cee53 100644 --- a/src/ssl_sock.c +++ b/src/ssl_sock.c
@@ -4656,6 +4656,9 @@ char **dst; int i; + if (fcount == 0) + return NULL; + dst = calloc(fcount + 1, sizeof(*dst)); if (!dst) return NULL;