]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUG/MINOR: ssl: free the sni_keytype nodes
authorWilliam Lallemand <wlallemand@haproxy.com>
Fri, 4 Oct 2019 15:24:39 +0000 (17:24 +0200)
committerWilliam Lallemand <wlallemand@haproxy.org>
Fri, 11 Oct 2019 15:32:02 +0000 (17:32 +0200)
This patch frees the sni_keytype nodes once the sni_ctxs have been
allocated in ssl_sock_load_multi_ckchn();

Could be backported in every version using the multi-cert SSL bundles.

src/ssl_sock.c

index b9ca6624628a9e0fe06b54c6e6fefe16b635ca50..a957d3e9cdc4698e78dd24b21559510a922718e6 100644 (file)
@@ -3361,6 +3361,7 @@ end:
        while (node) {
                next = ebmb_next(node);
                ebmb_delete(node);
+               free(ebmb_entry(node, struct sni_keytype, name));
                node = next;
        }