s3:rpc_server: Remove dead code and unused struct members
authorSamuel Cabrero <scabrero@suse.de>
Thu, 7 Mar 2019 10:37:48 +0000 (11:37 +0100)
committerSamuel Cabrero <scabrero@sn-devel-184>
Fri, 20 Mar 2020 15:36:36 +0000 (15:36 +0000)
Signed-off-by: Samuel Cabrero <scabrero@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source3/rpc_server/rpc_handles.c
source3/rpc_server/rpc_pipes.h

index 453dab6905f6c535f329d52a24d7986775b71b02..e6e69045b28b70b62ddc74b7c5a0491c8780c591 100644 (file)
@@ -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) {
index 8a8f8e58169182006f492fef9c3f26ae45111dd5..3546d23242fb5fc39c21deda773437df09dece5f 100644 (file)
@@ -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;