mirror of
https://github.com/samba-team/samba.git
synced 2025-08-26 01:49:31 +03:00
librpc/rpc: call do_ndr_print hook in dcerpc_binding_handle_call*()
metze
This commit is contained in:
@ -311,6 +311,11 @@ struct tevent_req *dcerpc_binding_handle_call_send(TALLOC_CTX *mem_ctx,
|
||||
state->push->flags |= LIBNDR_FLAG_NDR64;
|
||||
}
|
||||
|
||||
if (h->ops->do_ndr_print) {
|
||||
h->ops->do_ndr_print(h, NDR_IN | NDR_SET_VALUES,
|
||||
state->r_ptr, state->call);
|
||||
}
|
||||
|
||||
/* push the structure into a blob */
|
||||
ndr_err = state->call->ndr_push(state->push, NDR_IN, state->r_ptr);
|
||||
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
|
||||
@ -401,6 +406,11 @@ static void dcerpc_binding_handle_call_done(struct tevent_req *subreq)
|
||||
return;
|
||||
}
|
||||
|
||||
if (h->ops->do_ndr_print) {
|
||||
h->ops->do_ndr_print(h, NDR_OUT,
|
||||
state->r_ptr, state->call);
|
||||
}
|
||||
|
||||
if (h->ops->ndr_validate_out) {
|
||||
error = h->ops->ndr_validate_out(h,
|
||||
state->pull,
|
||||
|
Reference in New Issue
Block a user