]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
dcesrv_core: Remove unused dcesrv_reinit_context()
authorVolker Lendecke <vl@samba.org>
Mon, 27 Sep 2021 11:13:11 +0000 (13:13 +0200)
committerVolker Lendecke <vl@samba.org>
Fri, 10 Dec 2021 14:02:30 +0000 (14:02 +0000)
This was only used in the prefork source3 rpc servers

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Samuel Cabrero <scabrero@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
librpc/rpc/dcesrv_core.c
librpc/rpc/dcesrv_core.h

index ff38bba997be0bdd45c61c1faf80eef97a35ffb0..015c7639a51b08e455d5afa99718f714deb57c5a 100644 (file)
@@ -2428,35 +2428,6 @@ _PUBLIC_ NTSTATUS dcesrv_init_context(TALLOC_CTX *mem_ctx,
        return NT_STATUS_OK;
 }
 
-_PUBLIC_ NTSTATUS dcesrv_reinit_context(struct dcesrv_context *dce_ctx)
-{
-       NTSTATUS status;
-
-       status = dcesrv_shutdown_registered_ep_servers(dce_ctx);
-       if (!NT_STATUS_IS_OK(status)) {
-               return status;
-       }
-
-       /* Clear endpoints */
-       while (dce_ctx->endpoint_list != NULL) {
-               struct dcesrv_endpoint *e = dce_ctx->endpoint_list;
-               DLIST_REMOVE(dce_ctx->endpoint_list, e);
-               TALLOC_FREE(e);
-       }
-
-       /* Remove broken connections */
-       dcesrv_cleanup_broken_connections(dce_ctx);
-
-       /* Reinit assoc group idr */
-       TALLOC_FREE(dce_ctx->assoc_groups_idr);
-       dce_ctx->assoc_groups_idr = idr_init(dce_ctx);
-       if (dce_ctx->assoc_groups_idr == NULL) {
-               return NT_STATUS_NO_MEMORY;
-       }
-
-       return NT_STATUS_OK;
-}
-
 /**
  * @brief Set callback functions on an existing dcesrv_context
  *
index 1c0d346bfe4fc73404876a5f7c1366576376f06c..e8e87bcce94426390a2884ab30961e2687c71fca 100644 (file)
@@ -482,7 +482,6 @@ NTSTATUS dcesrv_init_context(TALLOC_CTX *mem_ctx,
                             struct loadparm_context *lp_ctx,
                             struct dcesrv_context_callbacks *cb,
                             struct dcesrv_context **_dce_ctx);
-NTSTATUS dcesrv_reinit_context(struct dcesrv_context *dce_ctx);
 void dcesrv_context_set_callbacks(
        struct dcesrv_context *dce_ctx,
        struct dcesrv_context_callbacks *cb);