diff options
author | Andrew Bartlett <abartlet@samba.org> | 2015-07-28 14:29:25 +1200 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2015-09-03 09:11:35 +0200 |
commit | 1e432b9fd4796474888d66c30614ec5a8ae2059b (patch) | |
tree | 627d03f7f5ac2179490bb66894d558b265f714f1 | |
parent | 43c6f8cf69b4d49824e601480ca51c105fa9932f (diff) | |
download | samba-1e432b9fd4796474888d66c30614ec5a8ae2059b.tar.gz |
pydsdb: Allow the full range of uint32_t values for attributeID
The high bit may be set in these integers, so we need an unsigned int to store it in
BUG: https://bugzilla.samba.org/show_bug.cgi?id=11429
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
(cherry picked from commit bed29f3c92861fb2b83ad03a5c759061e1c31eba)
-rw-r--r-- | source4/dsdb/pydsdb.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/dsdb/pydsdb.c b/source4/dsdb/pydsdb.c index 388d3c3e208..9a3b5093937 100644 --- a/source4/dsdb/pydsdb.c +++ b/source4/dsdb/pydsdb.c @@ -259,7 +259,7 @@ static PyObject *py_dsdb_get_oid_from_attid(PyObject *self, PyObject *args) WERROR status; TALLOC_CTX *mem_ctx; - if (!PyArg_ParseTuple(args, "Oi", &py_ldb, &attid)) + if (!PyArg_ParseTuple(args, "OI", &py_ldb, &attid)) return NULL; PyErr_LDB_OR_RAISE(py_ldb, ldb); @@ -452,7 +452,7 @@ static PyObject *py_dsdb_get_lDAPDisplayName_by_attid(PyObject *self, PyObject * const struct dsdb_attribute *a; uint32_t attid; - if (!PyArg_ParseTuple(args, "Oi", &py_ldb, &attid)) + if (!PyArg_ParseTuple(args, "OI", &py_ldb, &attid)) return NULL; PyErr_LDB_OR_RAISE(py_ldb, ldb); |