librpc/rpc/binding_handle.c cleanups
authorStefan Metzmacher <metze@samba.org>
Sat, 21 Sep 2013 20:05:23 +0000 (22:05 +0200)
committerStefan Metzmacher <metze@samba.org>
Tue, 4 Jun 2019 11:14:55 +0000 (13:14 +0200)
librpc/rpc/binding_handle.c

index c6d905137a3b366f851e22bffbcc81a296101b1d..a22f7cf40e50500d41365e7e5fa9e4a434e684c5 100644 (file)
@@ -1152,7 +1152,7 @@ static void dcerpc_binding_handle_call_params_pull_notify(struct tevent_req *req
                tevent_req_data(pp->call_req,
                struct dcerpc_binding_handle_call_params_state);
        enum ndr_err_code ndr_err;
-       struct ndr_push *pipe_pull = NULL;
+       struct ndr_pull *pipe_pull = NULL;
        const uint32_t *count = NULL;
 
        if (call_state->pull == NULL) {
@@ -1177,9 +1177,9 @@ static void dcerpc_binding_handle_call_params_pull_notify(struct tevent_req *req
 
        /* pull the structure from the subcontext */
        pipe_pull->current_mem_ctx = state->chunk_mem;
-       ndr_err = pipe_pull->ndr_pull(pipe_pull,
-                                     NDR_SCALARS|NDR_BUFFERS,
-                                     state->chunk_ptr);
+       ndr_err = call_state->call_pipe->ndr_pull(pipe_pull,
+                                                 NDR_SCALARS|NDR_BUFFERS,
+                                                 state->chunk_ptr);
        if (ndr_err == NDR_ERR_INCOMPLETE_BUFFER) {
                TALLOC_FREE(pipe_pull);
                talloc_free_children(state->chunk_mem);