BUG/MINOR: ssl: free the sni_keytype nodes

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.
This commit is contained in:
William Lallemand 2019-10-04 17:24:39 +02:00 committed by William Lallemand
parent fe49bb3d0c
commit 8ed5b96587

View File

@ -3361,6 +3361,7 @@ static int ssl_sock_load_multi_ckchs(const char *path, struct ckch_store *ckchs,
while (node) {
next = ebmb_next(node);
ebmb_delete(node);
free(ebmb_entry(node, struct sni_keytype, name));
node = next;
}