summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorAmitay Isaacs <amitay@gmail.com>2011-11-18 14:35:56 +1100
committerAmitay Isaacs <amitay@samba.org>2011-11-18 06:18:33 +0100
commitcd3f552f4f632204edc8064a1ad332e703a28e72 (patch)
tree886e3033ea3de5992173aaf31b7a1e1a344367ad /source3
parent9318e00a1fab1e6eda6495c44b69d95a980b1e5e (diff)
downloadsamba-cd3f552f4f632204edc8064a1ad332e703a28e72.tar.gz
samba-cd3f552f4f632204edc8064a1ad332e703a28e72.tar.bz2
samba-cd3f552f4f632204edc8064a1ad332e703a28e72.zip
s3-py-passdb: Fix handling of uninitialized gid values
Uninitialized gid value is set to -1 and return as such from python passdb api. Autobuild-User: Amitay Isaacs <amitay@samba.org> Autobuild-Date: Fri Nov 18 06:18:33 CET 2011 on sn-devel-104
Diffstat (limited to 'source3')
-rw-r--r--source3/passdb/py_passdb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/passdb/py_passdb.c b/source3/passdb/py_passdb.c
index 39ecf86094..46f2e90f3d 100644
--- a/source3/passdb/py_passdb.c
+++ b/source3/passdb/py_passdb.c
@@ -975,7 +975,7 @@ static PyObject *py_groupmap_get_gid(PyObject *obj, void *closure)
GROUP_MAP *group_map = (GROUP_MAP *)pytalloc_get_ptr(obj);
PyObject *py_gid;
- py_gid = PyInt_FromLong(group_map->gid);
+ py_gid = Py_BuildValue("i", group_map->gid);
return py_gid;
}