commit | a690fed5bef913d245f07d21789472f1db7959d8 | [log] [tgz] |
---|---|---|
author | William Lallemand <wlallemand@haproxy.com> | Thu Apr 02 12:02:54 2020 +0200 |
committer | William Lallemand <wlallemand@haproxy.org> | Thu Apr 02 15:40:19 2020 +0200 |
tree | da05fb87bdf459addacdf1d51dab62745698cde8 | |
parent | b7e43f0cabd0dc47317b823e8ec642c59ff4920a [diff] |
BUG/MINOR: ssl/cli: initialize fcount int crtlist_entry Initialize fcount to 0 when 'add ssl crt-list' does not contain any filters. This bug can lead to trying to read some filters even if they doesn't exist.
diff --git a/src/ssl_sock.c b/src/ssl_sock.c index 7be6d1c..bf6205f 100644 --- a/src/ssl_sock.c +++ b/src/ssl_sock.c
@@ -11400,6 +11400,7 @@ memprintf(&err, "Not enough memory!"); goto error; } + entry->fcount = 0; entry->filters = NULL; entry->ssl_conf = NULL;