diff options
Diffstat (limited to 'source4/scripting')
-rw-r--r-- | source4/scripting/ejs/smbcalls_rpc.c | 6 |
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; |