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.
This commit is contained in:
William Lallemand 2021-01-27 14:42:40 +01:00
parent 3888b8cd7b
commit b8868498ed

View 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;