r9226: make sure we catch rpc faults in the ejs rpc wrappers
authorAndrew Tridgell <tridge@samba.org>
Wed, 10 Aug 2005 06:55:46 +0000 (06:55 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:31:34 +0000 (13:31 -0500)
(This used to be commit 3ec376141e64f0a504f04b470cb5df78c2e0f5c2)

source4/scripting/ejs/smbcalls_rpc.c

index cbb8d9dd9da6218fbc2dae0cf701dfacadda077f..d10e68f731919c262222a6e18fe7ff669ac3b063 100644 (file)
@@ -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) {