From bc6d35135d02185c2c28efbc7a2955317af87548 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Wed, 17 Aug 2005 01:30:47 +0000 Subject: r9340: print the [in] contents when debugging even if the marshalling failed. This makes it easier to track down marshalling bugs. (This used to be commit a7a1752ca47a18b325a0ad0984cf7d02da1e2afe) --- source4/scripting/ejs/smbcalls_rpc.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'source4/scripting/ejs/smbcalls_rpc.c') diff --git a/source4/scripting/ejs/smbcalls_rpc.c b/source4/scripting/ejs/smbcalls_rpc.c index d10e68f731..6da8cb351c 100644 --- a/source4/scripting/ejs/smbcalls_rpc.c +++ b/source4/scripting/ejs/smbcalls_rpc.c @@ -329,17 +329,19 @@ done: goto done; } + /* make the actual call */ + req = dcerpc_ndr_request_send(p, NULL, iface, callnum, ptr, ptr); + /* if requested, print the structure */ if (p->conn->flags & DCERPC_DEBUG_PRINT_IN) { ndr_print_function_debug(call->ndr_print, call->name, NDR_IN, ptr); } - /* make the actual call */ - req = dcerpc_ndr_request_send(p, NULL, iface, callnum, ptr, ptr); if (req == NULL) { status = NT_STATUS_NO_MEMORY; goto done; } + status = dcerpc_ndr_request_recv(req); if (!NT_STATUS_IS_OK(status)) { goto done; -- cgit