summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2011-11-09 08:15:31 +1100
committerAndrew Bartlett <abartlet@samba.org>2011-11-09 23:38:25 +0100
commit0f2ff7c5c23490adc8c1b7287f8f52dddcf48e15 (patch)
tree3ff116ec893f54333b05a137fc23f87d8d7c2997 /source3
parent1fb836d86314ee57519f4bf3247ca58dde70d9df (diff)
downloadsamba-0f2ff7c5c23490adc8c1b7287f8f52dddcf48e15.tar.gz
samba-0f2ff7c5c23490adc8c1b7287f8f52dddcf48e15.tar.bz2
samba-0f2ff7c5c23490adc8c1b7287f8f52dddcf48e15.zip
s3-py_passdb Ensure that group mapping list input is initailised
This may help to ensure we consistantly crash on an incorrect de-reference. Andrew Bartlett
Diffstat (limited to 'source3')
-rw-r--r--source3/passdb/py_passdb.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/passdb/py_passdb.c b/source3/passdb/py_passdb.c
index 4c8dbcdbd2..0f71837900 100644
--- a/source3/passdb/py_passdb.c
+++ b/source3/passdb/py_passdb.c
@@ -1805,7 +1805,8 @@ static PyObject *py_pdb_enum_group_mapping(pytalloc_Object *self, PyObject *args
int unix_only = 0;
PyObject *py_domain_sid;
struct dom_sid *domain_sid = NULL;
- GROUP_MAP **gmap, *group_map;
+ GROUP_MAP **gmap = NULL;
+ GROUP_MAP *group_map;
size_t num_entries;
PyObject *py_gmap_list, *py_group_map;
int i;