rpc_client: Slightly simplify rpc_api_pipe_req_send()
authorVolker Lendecke <vl@samba.org>
Tue, 17 Aug 2021 05:42:48 +0000 (07:42 +0200)
committerJeremy Allison <jra@samba.org>
Tue, 24 Aug 2021 17:32:28 +0000 (17:32 +0000)
tevent_req_create() zero-initializes "state"

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/rpc_client/cli_pipe.c

index 030672029921a5db76748caa2101ba848a28c94b..0e01ce1c1390da2bbf4eb1551cdd35642aff1d2e 100644 (file)
@@ -1322,10 +1322,7 @@ static struct tevent_req *rpc_api_pipe_req_send(TALLOC_CTX *mem_ctx,
        state->op_num = op_num;
        state->object_uuid = object_uuid;
        state->req_data = req_data;
-       state->req_data_sent = 0;
        state->call_id = get_rpc_call_id();
-       state->reply_pdu = data_blob_null;
-       state->rpc_out = data_blob_null;
 
        if (cli->max_xmit_frag < DCERPC_REQUEST_LENGTH
                                        + RPC_MAX_SIGN_SIZE) {