From: Samuel Cabrero Date: Thu, 7 Mar 2019 10:37:48 +0000 (+0100) Subject: s3:rpc_server: Remove dead code and unused struct members X-Git-Tag: ldb-2.2.0~1309 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d891c2d389b39d1535c30ab759f1a0dd48787ec0;p=thirdparty%2Fsamba.git s3:rpc_server: Remove dead code and unused struct members Signed-off-by: Samuel Cabrero Reviewed-by: Andrew Bartlett --- 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,16 +132,8 @@ 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. */ @@ -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;