summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2005-08-10 06:55:46 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:31:34 -0500
commit922f28fcbda983dcd6141f7c746d0f228302d368 (patch)
tree5208f1699b7af0c5e0151a1945c8384d5d609c65
parent172cee9adc86ab1950b50ffc008587e6d42585ed (diff)
downloadsamba-922f28fcbda983dcd6141f7c746d0f228302d368.tar.gz
samba-922f28fcbda983dcd6141f7c746d0f228302d368.tar.bz2
samba-922f28fcbda983dcd6141f7c746d0f228302d368.zip
r9226: make sure we catch rpc faults in the ejs rpc wrappers
(This used to be commit 3ec376141e64f0a504f04b470cb5df78c2e0f5c2)
-rw-r--r--source4/scripting/ejs/smbcalls_rpc.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source4/scripting/ejs/smbcalls_rpc.c b/source4/scripting/ejs/smbcalls_rpc.c
index cbb8d9dd9d..d10e68f731 100644
--- a/source4/scripting/ejs/smbcalls_rpc.c
+++ b/source4/scripting/ejs/smbcalls_rpc.c
@@ -341,6 +341,9 @@ done:
goto done;
}
status = dcerpc_ndr_request_recv(req);
+ if (!NT_STATUS_IS_OK(status)) {
+ goto done;
+ }
/* print the 'out' structure, if needed */
if (p->conn->flags & DCERPC_DEBUG_PRINT_OUT) {