]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: ssl: initialize the sni_keytypes_map as EB_ROOT
authorWilliam Lallemand <wlallemand@haproxy.com>
Fri, 4 Oct 2019 16:36:55 +0000 (18:36 +0200)
committerWilliam Lallemand <wlallemand@haproxy.org>
Fri, 11 Oct 2019 15:32:02 +0000 (17:32 +0200)
The sni_keytypes_map was initialized to {0}, it's better to initialize
it explicitly to EB_ROOT

src/ssl_sock.c

index 9f6d2b6c8598f47a58cac2c436c7da9ae8911486..2256385c813151b3ef58eb3abc50b4b47cff714a 100644 (file)
@@ -3178,7 +3178,7 @@ static int ssl_sock_load_multi_ckchs(const char *path, struct ckch_store *ckchs,
 {
        int i = 0, n = 0;
        struct cert_key_and_chain *certs_and_keys;
-       struct eb_root sni_keytypes_map = { {0} };
+       struct eb_root sni_keytypes_map = EB_ROOT;
        struct ebmb_node *node;
        struct ebmb_node *next;
        /* Array of SSL_CTX pointers corresponding to each possible combo