mirror of
https://github.com/samba-team/samba.git
synced 2025-01-11 05:18:09 +03:00
s3-passdb Initialise the correct level of pointer dereference
*pp_rmap may be NULL or un-initialised data.
This was introduced by 995d156726
.
Andrew Bartlett
This commit is contained in:
parent
f4a07f0b81
commit
1fb836d863
@ -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 "
|
||||
|
Loading…
Reference in New Issue
Block a user