diff options
author | Tim Potter <tpot@samba.org> | 2004-10-03 08:50:31 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:59:35 -0500 |
commit | 985abd104dc1011b8553986ddd1fe6f4c64705c7 (patch) | |
tree | f01ee2e06903d853df8a549680cd72531168acf8 | |
parent | a56c984df498488f2e99b1fa8ae156a882f82175 (diff) | |
download | samba-985abd104dc1011b8553986ddd1fe6f4c64705c7.tar.gz samba-985abd104dc1011b8553986ddd1fe6f4c64705c7.tar.bz2 samba-985abd104dc1011b8553986ddd1fe6f4c64705c7.zip |
r2801: Wrapped functions that return a DOS error code can return DCERPC
faults if they are badly formed. Handle this by checking the value of
NTSTATUS as well as WERROR.
(This used to be commit bb1be7819741f6c7dc1ee982cb2a255b6d776b79)
-rw-r--r-- | source4/scripting/swig/dcerpc.i | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source4/scripting/swig/dcerpc.i b/source4/scripting/swig/dcerpc.i index a560cca570..d8589693ac 100644 --- a/source4/scripting/swig/dcerpc.i +++ b/source4/scripting/swig/dcerpc.i @@ -366,6 +366,10 @@ NTSTATUS dcerpc_pipe_connect(struct dcerpc_pipe **OUT, %exception { $action + if (NT_STATUS_IS_ERR(result)) { + set_ntstatus_exception(NT_STATUS_V(result)); + return NULL; + } if (!W_ERROR_IS_OK(arg3->out.result)) { set_werror_exception(W_ERROR_V(arg3->out.result)); return NULL; |