From 4b989f2facde1c27a4b6a96897e2ded80026615b Mon Sep 17 00:00:00 2001 From: William Lallemand Date: Fri, 4 Oct 2019 18:36:55 +0200 Subject: [PATCH] MINOR: ssl: initialize the sni_keytypes_map as EB_ROOT The sni_keytypes_map was initialized to {0}, it's better to initialize it explicitly to EB_ROOT --- src/ssl_sock.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ssl_sock.c b/src/ssl_sock.c index 9f6d2b6c8..2256385c8 100644 --- a/src/ssl_sock.c +++ b/src/ssl_sock.c @@ -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