From d491c6c496c34b7d45c7c99a4f350fa9715be93f Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Sat, 26 Sep 2015 02:43:30 +0200 Subject: [PATCH] s3:rpc_client: remove unused rpc_pipe_client->max_recv_frag MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Stefan Metzmacher Reviewed-by: Günther Deschner --- source3/rpc_client/cli_pipe.c | 4 ---- source3/rpc_client/rpc_client.h | 1 - source3/rpc_server/rpc_ncacn_np.c | 2 -- 3 files changed, 7 deletions(-) diff --git a/source3/rpc_client/cli_pipe.c b/source3/rpc_client/cli_pipe.c index 97f49446312..47e2854d862 100644 --- a/source3/rpc_client/cli_pipe.c +++ b/source3/rpc_client/cli_pipe.c @@ -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); diff --git a/source3/rpc_client/rpc_client.h b/source3/rpc_client/rpc_client.h index b033da6c3d7..f1be075fea9 100644 --- a/source3/rpc_client/rpc_client.h +++ b/source3/rpc_client/rpc_client.h @@ -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; }; diff --git a/source3/rpc_server/rpc_ncacn_np.c b/source3/rpc_server/rpc_ncacn_np.c index 5647596f559..f9c73de81e5 100644 --- a/source3/rpc_server/rpc_ncacn_np.c +++ b/source3/rpc_server/rpc_ncacn_np.c @@ -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, -- 2.47.2