From b8868498edd1e005414fb44d6cf91e44b45ca191 Mon Sep 17 00:00:00 2001 From: William Lallemand Date: Wed, 27 Jan 2021 14:42:40 +0100 Subject: [PATCH] CLEANUP: ssl: remove dead code in ckch_inst_new_load_srv_store() The new ckch_inst_new_load_srv_store() function which mimics the ckch_inst_new_load_store() function includes some dead code which was used only in the former function. Fix issue #1081. --- src/ssl_sock.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/ssl_sock.c b/src/ssl_sock.c index ee52aa057..c25f447fb 100644 --- a/src/ssl_sock.c +++ b/src/ssl_sock.c @@ -3499,11 +3499,6 @@ int ckch_inst_new_load_srv_store(const char *path, struct ckch_store *ckchs, return errcode; error: - /* free the allocated sni_ctxs */ - if (ckch_inst) { - ckch_inst_free(ckch_inst); - ckch_inst = NULL; - } SSL_CTX_free(ctx); return errcode;