From ab7868a9646f295c0edf534b84b47a5e7dc9f7d9 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Wed, 28 Oct 2015 12:21:43 +0100 Subject: [PATCH] s3:librpc: move NDR_PRINT_DEBUG() into the caller of dcerpc_pull_ncacn_packet() MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Stefan Metzmacher Reviewed-by: Günther Deschner Reviewed-by: Andreas Schneider --- source3/librpc/rpc/dcerpc_helpers.c | 4 ---- source3/rpc_client/cli_pipe.c | 4 ++++ 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/source3/librpc/rpc/dcerpc_helpers.c b/source3/librpc/rpc/dcerpc_helpers.c index 11b445f0fa1..aeb6cadae91 100644 --- a/source3/librpc/rpc/dcerpc_helpers.c +++ b/source3/librpc/rpc/dcerpc_helpers.c @@ -119,10 +119,6 @@ NTSTATUS dcerpc_pull_ncacn_packet(TALLOC_CTX *mem_ctx, } talloc_free(ndr); - if (DEBUGLEVEL >= 10) { - NDR_PRINT_DEBUG(ncacn_packet, r); - } - if (r->frag_length != blob->length) { return NT_STATUS_RPC_PROTOCOL_ERROR; } diff --git a/source3/rpc_client/cli_pipe.c b/source3/rpc_client/cli_pipe.c index 84d11216d0d..02af49fb035 100644 --- a/source3/rpc_client/cli_pipe.c +++ b/source3/rpc_client/cli_pipe.c @@ -960,6 +960,10 @@ static void rpc_api_pipe_got_pdu(struct tevent_req *subreq) return; } + if (DEBUGLEVEL >= 10) { + NDR_PRINT_DEBUG(ncacn_packet, state->pkt); + } + status = cli_pipe_validate_current_pdu(state, state->cli, state->pkt, &state->incoming_frag, -- 2.11.4.GIT