From d891c2d389b39d1535c30ab759f1a0dd48787ec0 Mon Sep 17 00:00:00 2001 From: Samuel Cabrero Date: Thu, 7 Mar 2019 11:37:48 +0100 Subject: [PATCH] s3:rpc_server: Remove dead code and unused struct members Signed-off-by: Samuel Cabrero Reviewed-by: Andrew Bartlett --- source3/rpc_server/rpc_handles.c | 1 - source3/rpc_server/rpc_pipes.h | 12 ------------ 2 files changed, 13 deletions(-) diff --git a/source3/rpc_server/rpc_handles.c b/source3/rpc_server/rpc_handles.c index 453dab6905f..e6e69045b28 100644 --- a/source3/rpc_server/rpc_handles.c +++ b/source3/rpc_server/rpc_handles.c @@ -69,7 +69,6 @@ int make_base_pipes_struct(TALLOC_CTX *mem_ctx, p->msg_ctx = msg_ctx; p->transport = transport; p->endian = endian; - p->allow_bind = true; p->remote_address = tsocket_address_copy(remote_address, p); if (p->remote_address == NULL) { diff --git a/source3/rpc_server/rpc_pipes.h b/source3/rpc_server/rpc_pipes.h index 8a8f8e58169..3546d23242f 100644 --- a/source3/rpc_server/rpc_pipes.h +++ b/source3/rpc_server/rpc_pipes.h @@ -132,17 +132,9 @@ struct pipes_struct { /* * Set to true when an RPC bind has been done on this pipe. */ - bool pipe_bound; /* - * States we can be in. - */ - bool allow_alter; - bool allow_bind; - bool allow_auth3; - - /* * Set the DCERPC_FAULT to return. */ int fault_state; @@ -150,7 +142,6 @@ struct pipes_struct { /* * Set to RPC_BIG_ENDIAN when dealing with big-endian PDU's */ - bool endian; /* @@ -178,9 +169,6 @@ struct pipes_struct { /* operation number retrieved from the rpc header */ uint16_t opnum; - /* rpc header information to check fragments for consistency */ - struct dcerpc_sec_vt_header2 header2; - /* private data for the interface implementation */ void *private_data; -- 2.11.4.GIT