diff options
author | Tim Potter <tpot@samba.org> | 2004-11-07 00:41:43 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:05:36 -0500 |
commit | 3503373ba5af647a6da14b80385a5c1084c3112f (patch) | |
tree | 10c587dce232259d10564b6267c00e05dcb92066 /source4/scripting/swig/dcerpc.i | |
parent | 7c400a840bb465180cd2d86034441cb4ccf79816 (diff) | |
download | samba-3503373ba5af647a6da14b80385a5c1084c3112f.tar.gz samba-3503373ba5af647a6da14b80385a5c1084c3112f.tar.bz2 samba-3503373ba5af647a6da14b80385a5c1084c3112f.zip |
r3588: Fix bug in converting SIDs containing large unsigned integers from Python.
(This used to be commit a46aba43549e5221ec0c15d4133444d8ef77a4fb)
Diffstat (limited to 'source4/scripting/swig/dcerpc.i')
-rw-r--r-- | source4/scripting/swig/dcerpc.i | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source4/scripting/swig/dcerpc.i b/source4/scripting/swig/dcerpc.i index 560345525f..27afb6471c 100644 --- a/source4/scripting/swig/dcerpc.i +++ b/source4/scripting/swig/dcerpc.i @@ -119,9 +119,9 @@ uint32 uint32_from_python(PyObject *obj, char *name) } if (PyLong_Check(obj)) - return (uint32)PyLong_AsLong(obj); - else - return (uint32)PyInt_AsLong(obj); + return (uint32)PyLong_AsUnsignedLongMask(obj); + + return (uint32)PyInt_AsLong(obj); } PyObject *uint32_to_python(uint32 obj) |