s3:rpc_client: remove unused rpc_pipe_client->max_recv_frag
authorStefan Metzmacher <metze@samba.org>
Sat, 26 Sep 2015 00:43:30 +0000 (02:43 +0200)
committerStefan Metzmacher <metze@samba.org>
Fri, 24 Jun 2016 12:09:01 +0000 (14:09 +0200)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Günther Deschner <gd@samba.org>
source3/rpc_client/cli_pipe.c
source3/rpc_client/rpc_client.h
source3/rpc_server/rpc_ncacn_np.c

index 97f4944631209310f2126c79c1df3d4f53c2af1f..47e2854d862d17cbc5a880705b5ec31c62093935 100644 (file)
@@ -1941,7 +1941,6 @@ static void rpc_pipe_bind_step_one_done(struct tevent_req *subreq)
        }
 
        state->cli->max_xmit_frag = pkt->u.bind_ack.max_xmit_frag;
-       state->cli->max_recv_frag = pkt->u.bind_ack.max_recv_frag;
 
        switch(pauth->auth_type) {
 
@@ -2655,7 +2654,6 @@ static NTSTATUS rpc_pipe_open_tcp_port(TALLOC_CTX *mem_ctx, const char *host,
        }
 
        result->max_xmit_frag = RPC_MAX_PDU_FRAG_LEN;
-       result->max_recv_frag = RPC_MAX_PDU_FRAG_LEN;
 
        if (ss_addr == NULL) {
                if (!resolve_name(host, &addr, NBT_NAME_SERVER, false)) {
@@ -2903,7 +2901,6 @@ NTSTATUS rpc_pipe_open_ncalrpc(TALLOC_CTX *mem_ctx, const char *socket_path,
        }
 
        result->max_xmit_frag = RPC_MAX_PDU_FRAG_LEN;
-       result->max_recv_frag = RPC_MAX_PDU_FRAG_LEN;
 
        fd = socket(AF_UNIX, SOCK_STREAM, 0);
        if (fd == -1) {
@@ -2995,7 +2992,6 @@ static NTSTATUS rpc_pipe_open_np(struct cli_state *cli,
                result, "\\\\%s", result->desthost);
 
        result->max_xmit_frag = RPC_MAX_PDU_FRAG_LEN;
-       result->max_recv_frag = RPC_MAX_PDU_FRAG_LEN;
 
        if ((result->desthost == NULL) || (result->srv_name_slash == NULL)) {
                TALLOC_FREE(result);
index b033da6c3d72e0f65306497afd0ff6bef99309e1..f1be075fea9125a4a549c7b0d6bbf686a0ca7f33 100644 (file)
@@ -45,7 +45,6 @@ struct rpc_pipe_client {
        char *srv_name_slash;
 
        uint16_t max_xmit_frag;
-       uint16_t max_recv_frag;
 
        struct pipe_auth_data *auth;
 };
index 5647596f559cc8668346a4bde3e14f597bd805ba..f9c73de81e5c2879203d03965b77f26bc767bead 100644 (file)
@@ -629,7 +629,6 @@ NTSTATUS rpc_pipe_open_internal(TALLOC_CTX *mem_ctx,
        }
 
        result->max_xmit_frag = -1;
-       result->max_recv_frag = -1;
 
        status = rpcint_binding_handle_ex(result,
                                          abstract_syntax,
@@ -954,7 +953,6 @@ static NTSTATUS rpc_pipe_open_external(TALLOC_CTX *mem_ctx,
        }
 
        result->max_xmit_frag = RPC_MAX_PDU_FRAG_LEN;
-       result->max_recv_frag = RPC_MAX_PDU_FRAG_LEN;
 
        status = rpc_transport_tstream_init(result,
                                            &proxy_state->npipe,