From 1fb836d86314ee57519f4bf3247ca58dde70d9df Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Wed, 9 Nov 2011 08:11:32 +1100 Subject: [PATCH] s3-passdb Initialise the correct level of pointer dereference *pp_rmap may be NULL or un-initialised data. This was introduced by 995d1567265be178b4e45f79ea4562a7041ffa52. Andrew Bartlett --- source3/passdb/pdb_ldap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source3/passdb/pdb_ldap.c b/source3/passdb/pdb_ldap.c index b59eeb9a7e7..a89af8051b6 100644 --- a/source3/passdb/pdb_ldap.c +++ b/source3/passdb/pdb_ldap.c @@ -3486,7 +3486,7 @@ static NTSTATUS ldapsam_enum_group_mapping(struct pdb_methods *methods, size_t entries = 0; *p_num_entries = 0; - **pp_rmap = NULL; + *pp_rmap = NULL; if (!NT_STATUS_IS_OK(ldapsam_setsamgrent(methods, False))) { DEBUG(0, ("ldapsam_enum_group_mapping: Unable to open " -- 2.34.1