summaryrefslogtreecommitdiff
path: root/source4/scripting/ejs/smbcalls_rpc.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2005-08-17 01:30:47 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:33:25 -0500
commitbc6d35135d02185c2c28efbc7a2955317af87548 (patch)
treeaacba46deffbc908b1fff8c37e9b1882e5c63c27 /source4/scripting/ejs/smbcalls_rpc.c
parentba6d3075bc7806878ed22f0bde7abf83142a714b (diff)
downloadsamba-bc6d35135d02185c2c28efbc7a2955317af87548.tar.gz
samba-bc6d35135d02185c2c28efbc7a2955317af87548.tar.bz2
samba-bc6d35135d02185c2c28efbc7a2955317af87548.zip
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)
Diffstat (limited to 'source4/scripting/ejs/smbcalls_rpc.c')
-rw-r--r--source4/scripting/ejs/smbcalls_rpc.c6
1 files changed, 4 insertions, 2 deletions
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;