summaryrefslogtreecommitdiff
path: root/librpc
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2021-09-27 13:13:11 +0200
committerVolker Lendecke <vl@samba.org>2021-12-10 14:02:30 +0000
commit7b62fa967d02f771d4afa9eaeef2f6b2d9f6ccd0 (patch)
tree26d994a8c0ad2f71187b250a33cae73c993a2426 /librpc
parent730f7dfd615ed9997cdf2e7e418605b28826e310 (diff)
downloadsamba-7b62fa967d02f771d4afa9eaeef2f6b2d9f6ccd0.tar.gz
dcesrv_core: Remove unused dcesrv_reinit_context()
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>
Diffstat (limited to 'librpc')
-rw-r--r--librpc/rpc/dcesrv_core.c29
-rw-r--r--librpc/rpc/dcesrv_core.h1
2 files changed, 0 insertions, 30 deletions
diff --git a/librpc/rpc/dcesrv_core.c b/librpc/rpc/dcesrv_core.c
index ff38bba997b..015c7639a51 100644
--- a/librpc/rpc/dcesrv_core.c
+++ b/librpc/rpc/dcesrv_core.c
@@ -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
*
diff --git a/librpc/rpc/dcesrv_core.h b/librpc/rpc/dcesrv_core.h
index 1c0d346bfe4..e8e87bcce94 100644
--- a/librpc/rpc/dcesrv_core.h
+++ b/librpc/rpc/dcesrv_core.h
@@ -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);