diff options
-rw-r--r-- | source3/passdb/pdb_ldap.c | 2 | ||||
-rw-r--r-- | source3/utils/net_groupmap.c | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/source3/passdb/pdb_ldap.c b/source3/passdb/pdb_ldap.c index fac95e3786..20cf2d328e 100644 --- a/source3/passdb/pdb_ldap.c +++ b/source3/passdb/pdb_ldap.c @@ -3193,7 +3193,7 @@ static NTSTATUS ldapsam_enum_aliasmem(struct pdb_methods *methods, char **values; int i; pstring filter; - size_t num_members; + size_t num_members = 0; *pp_members = NULL; *p_num_members = 0; diff --git a/source3/utils/net_groupmap.c b/source3/utils/net_groupmap.c index 12c3c79ef4..9e897d8efc 100644 --- a/source3/utils/net_groupmap.c +++ b/source3/utils/net_groupmap.c @@ -678,6 +678,9 @@ static int net_groupmap_listmem(int argc, const char **argv) return -1; } + members = NULL; + num = 0; + if (!pdb_enum_aliasmem(&alias, &members, &num)) { d_printf("Could not list members for sid %s\n", argv[0]); return -1; |