From 922f28fcbda983dcd6141f7c746d0f228302d368 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Wed, 10 Aug 2005 06:55:46 +0000 Subject: r9226: make sure we catch rpc faults in the ejs rpc wrappers (This used to be commit 3ec376141e64f0a504f04b470cb5df78c2e0f5c2) --- source4/scripting/ejs/smbcalls_rpc.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'source4') 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) { -- cgit