commit | e15029bea9a33cc0f7b392bf136ec2e49b17aba7 | [log] [tgz] |
---|---|---|
author | William Lallemand <wlallemand@haproxy.com> | Mon Oct 14 10:46:58 2019 +0200 |
committer | William Lallemand <wlallemand@haproxy.org> | Mon Oct 14 10:57:16 2019 +0200 |
tree | 210f8390c458df4c94266af83bc0948213927f85 | |
parent | 246c0246d35078f554ca3b35e4e3722de721395a [diff] |
BUG/MEDIUM: ssl: NULL dereference in ssl_sock_load_cert_sni() A NULL dereference can occur when inserting SNIs. In the case of checking for duplicates, if there is already several sni_ctx with the same key. Fix issue #321.
diff --git a/src/ssl_sock.c b/src/ssl_sock.c index 6a78114..90df6e7 100644 --- a/src/ssl_sock.c +++ b/src/ssl_sock.c
@@ -2777,6 +2777,7 @@ LIST_DEL(&sc0->by_ckch_inst); free(sc0); sc0 = NULL; + break; } }