librpc/rpc: call do_ndr_print hook in dcerpc_binding_handle_call*()
authorStefan Metzmacher <metze@samba.org>
Wed, 18 Aug 2010 13:47:15 +0000 (15:47 +0200)
committerStefan Metzmacher <metze@samba.org>
Wed, 18 Aug 2010 13:57:52 +0000 (15:57 +0200)
metze

librpc/rpc/binding_handle.c

index 153d7d16a9bfafe9fa19e66638cc053c213d27f8..75b2dedcb5ccf0706cd3812f33822229ccbe9554 100644 (file)
@@ -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,