From 9cef2e2c06e1b1cd5df59cbb94b3438850e4097e Mon Sep 17 00:00:00 2001 From: William Lallemand Date: Thu, 9 Apr 2020 16:25:10 +0200 Subject: [PATCH] MINOR: ssl: initialize all list in ckch_inst_new() The ckch_inst_new() function is not up to date with the latest list added into the structure. Update the list of structure to initialize. --- src/ssl_sock.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/ssl_sock.c b/src/ssl_sock.c index 8f84c676bf..a09e437c77 100644 --- a/src/ssl_sock.c +++ b/src/ssl_sock.c @@ -2904,8 +2904,12 @@ static struct ckch_inst *ckch_inst_new() struct ckch_inst *ckch_inst; ckch_inst = calloc(1, sizeof *ckch_inst); - if (ckch_inst) - LIST_INIT(&ckch_inst->sni_ctx); + if (!ckch_inst) + return NULL; + + LIST_INIT(&ckch_inst->sni_ctx); + LIST_INIT(&ckch_inst->by_ckchs); + LIST_INIT(&ckch_inst->by_crtlist_entry); return ckch_inst; } -- 2.47.3