MINOR: ssl: ssl_sock_load_ckchn() can properly fail
authorWilliam Lallemand <wlallemand@haproxy.com>
Fri, 4 Oct 2019 13:37:05 +0000 (15:37 +0200)
committerWilliam Lallemand <wlallemand@haproxy.org>
Fri, 11 Oct 2019 15:32:03 +0000 (17:32 +0200)
commitd919937991ce79d9c7a66fbabcbd34d2d7ca2ef3
tree72b3c434cd4421dd0165cf7caa6f058e07ab9a70
parent1d29c7438e24a8e7d30aabe9282cf479a07a89f2
MINOR: ssl: ssl_sock_load_ckchn() can properly fail

ssl_sock_load_ckchn() is now able to fail without polluting the
bind_conf trees and leaking memory.

It is a prerequisite to load certificate on-the-fly with the CLI.

The insertion of the sni_ctxs in the trees are done once everything has
been allocated correctly.
src/ssl_sock.c