summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/include/proto.h1
-rw-r--r--source3/rpc_server/srv_pipe_hnd.c13
-rw-r--r--source3/smbd/server.c3
3 files changed, 0 insertions, 17 deletions
diff --git a/source3/include/proto.h b/source3/include/proto.h
index e3d93494ff..4efcbba6a8 100644
--- a/source3/include/proto.h
+++ b/source3/include/proto.h
@@ -6223,7 +6223,6 @@ bool api_pipe_request(pipes_struct *p);
pipes_struct *get_first_internal_pipe(void);
pipes_struct *get_next_internal_pipe(pipes_struct *p);
-void init_rpc_pipe_hnd(void);
bool fsp_is_np(struct files_struct *fsp);
NTSTATUS np_open(TALLOC_CTX *mem_ctx, const char *name,
diff --git a/source3/rpc_server/srv_pipe_hnd.c b/source3/rpc_server/srv_pipe_hnd.c
index cbb6a8f4bf..0753476230 100644
--- a/source3/rpc_server/srv_pipe_hnd.c
+++ b/source3/rpc_server/srv_pipe_hnd.c
@@ -28,7 +28,6 @@
static int pipes_open;
static pipes_struct *InternalPipes;
-static struct bitmap *bmap;
/* TODO
* the following prototypes are declared here to avoid
@@ -57,18 +56,6 @@ pipes_struct *get_next_internal_pipe(pipes_struct *p)
}
/****************************************************************************
- Initialise pipe handle states.
-****************************************************************************/
-
-void init_rpc_pipe_hnd(void)
-{
- bmap = bitmap_allocate(MAX_OPEN_PIPES);
- if (!bmap) {
- exit_server("out of memory in init_rpc_pipe_hnd");
- }
-}
-
-/****************************************************************************
Initialise an outgoing packet.
****************************************************************************/
diff --git a/source3/smbd/server.c b/source3/smbd/server.c
index a884914839..42c37f2056 100644
--- a/source3/smbd/server.c
+++ b/source3/smbd/server.c
@@ -1008,9 +1008,6 @@ static bool init_structs(void )
file_init();
- /* for RPC pipes */
- init_rpc_pipe_hnd();
-
init_dptrs();
if (!secrets_init())