]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
CLEANUP: ssl: remove dead code in ckch_inst_new_load_srv_store()
authorWilliam Lallemand <wlallemand@haproxy.org>
Wed, 27 Jan 2021 13:42:40 +0000 (14:42 +0100)
committerWilliam Lallemand <wlallemand@haproxy.org>
Wed, 27 Jan 2021 13:44:59 +0000 (14:44 +0100)
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

index ee52aa0573c395e003d593cec248259c3aaa3b2e..c25f447fbaae95b7c11d96650ec8a8a3f7f2fa1b 100644 (file)
@@ -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;