r9340: print the [in] contents when debugging even if the marshalling
authorAndrew Tridgell <tridge@samba.org>
Wed, 17 Aug 2005 01:30:47 +0000 (01:30 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:33:25 +0000 (13:33 -0500)
failed. This makes it easier to track down marshalling bugs.
(This used to be commit a7a1752ca47a18b325a0ad0984cf7d02da1e2afe)

source4/scripting/ejs/smbcalls_rpc.c

index d10e68f731919c262222a6e18fe7ff669ac3b063..6da8cb351c24554fe79fc39a1eb22ead2223f830 100644 (file)
@@ -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;