svn commit: samba r2801 - in
branches/SAMBA_4_0/source/scripting/swig: .
tpot at samba.org
tpot at samba.org
Sun Oct 3 08:50:32 GMT 2004
Author: tpot
Date: 2004-10-03 08:50:31 +0000 (Sun, 03 Oct 2004)
New Revision: 2801
WebSVN: http://websvn.samba.org/websvn/changeset.php?rep=samba&path=/branches/SAMBA_4_0/source/scripting/swig&rev=2801&nolog=1
Log:
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.
Modified:
branches/SAMBA_4_0/source/scripting/swig/dcerpc.i
Changeset:
Modified: branches/SAMBA_4_0/source/scripting/swig/dcerpc.i
===================================================================
--- branches/SAMBA_4_0/source/scripting/swig/dcerpc.i 2004-10-03 08:27:56 UTC (rev 2800)
+++ branches/SAMBA_4_0/source/scripting/swig/dcerpc.i 2004-10-03 08:50:31 UTC (rev 2801)
@@ -366,6 +366,10 @@
%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;
More information about the samba-cvs
mailing list