From 99721cc7c827457814f97c401462243c3584f480 Mon Sep 17 00:00:00 2001 From: Tim Potter Date: Wed, 22 Sep 2004 03:42:58 +0000 Subject: r2490: Some changes to take into account non-error NTSTATUS codes being returned: - Only throw an exception if NT_STATUS_IS_ERR() instead of !NT_STATUS_IS_OK(). - Add the NTSTATUS value to the returned dictionary under a key of 'result' so calling functions can access it. (This used to be commit 4ddcae90a2e9b93e58bd57932cd9ae4c95be6ae8) --- source4/scripting/swig/dcerpc.i | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source4/scripting') diff --git a/source4/scripting/swig/dcerpc.i b/source4/scripting/swig/dcerpc.i index 08b47d6329..125b32df78 100644 --- a/source4/scripting/swig/dcerpc.i +++ b/source4/scripting/swig/dcerpc.i @@ -289,7 +289,7 @@ NTSTATUS dcerpc_pipe_connect(struct dcerpc_pipe **OUT, %exception { $action - if (!NT_STATUS_IS_OK(result)) { + if (NT_STATUS_IS_ERR(result)) { set_ntstatus_exception(NT_STATUS_V(result)); return NULL; } -- cgit