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

index a22f7cf40e50500d41365e7e5fa9e4a434e684c5..d32a83081522026fd8faddcf6b5cad7f14943add 100644 (file)
@@ -829,11 +829,6 @@ static void dcerpc_binding_handle_call_params_done(struct tevent_req *subreq)
                                          &state->response);
                if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                        error = ndr_map_error2ntstatus(ndr_err);
-                       if (h->ops->ndr_pull_failed) {
-                               h->ops->ndr_pull_failed(h, error,
-                                                       &state->response,
-                                                       state->call);
-                       }
                        tevent_req_nterror(req, error);
                        dcerpc_binding_handle_call_params_cleanup(req);
                        return;
@@ -969,11 +964,6 @@ static struct tevent_req *dcerpc_binding_handle_call_params_push_send(TALLOC_CTX
 
        state->push->flags = call_state->push->flags;
 
-       //if (h->ops->do_ndr_print) {
-       //      h->ops->do_ndr_print(h, NDR_IN | NDR_SET_VALUES,
-       //                           state->params->r_ptr, state->call);
-       //}
-
        /* push the structure into a blob */
        ndr_err = call_state->call_pipe->ndr_push(state->push,
                                                  NDR_SCALARS|NDR_BUFFERS,
@@ -981,11 +971,6 @@ static struct tevent_req *dcerpc_binding_handle_call_params_push_send(TALLOC_CTX
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                NTSTATUS error;
                error = ndr_map_error2ntstatus(ndr_err);
-               //if (h->ops->ndr_push_failed) {
-               //      h->ops->ndr_push_failed(h, error,
-               //                              state->params->r_ptr,
-               //                              state->call);
-               //}
                tevent_req_nterror(req, error);
                return tevent_req_post(req, ev);
        }