From 0f2ff7c5c23490adc8c1b7287f8f52dddcf48e15 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Wed, 9 Nov 2011 08:15:31 +1100 Subject: 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 --- source3/passdb/py_passdb.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'source3') 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; -- cgit