summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Cabrero <scabrero@suse.de>2019-03-07 11:37:48 +0100
committerSamuel Cabrero <scabrero@sn-devel-184>2020-03-20 15:36:36 +0000
commitd891c2d389b39d1535c30ab759f1a0dd48787ec0 (patch)
tree0f5fae54f865f550af5bc2bf209d85a2baee0fdc
parent04172e966b899763d6b982a688ff6564f3deaa28 (diff)
downloadsamba-d891c2d389b39d1535c30ab759f1a0dd48787ec0.tar.gz
s3:rpc_server: Remove dead code and unused struct members
Signed-off-by: Samuel Cabrero <scabrero@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
-rw-r--r--source3/rpc_server/rpc_handles.c1
-rw-r--r--source3/rpc_server/rpc_pipes.h12
2 files changed, 0 insertions, 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;