1
0
mirror of https://github.com/samba-team/samba.git synced 2025-11-11 00:23:51 +03:00

r1138: allow for a user in no groups

This commit is contained in:
Andrew Tridgell
2004-06-14 09:30:54 +00:00
committed by Gerald (Jerry) Carter
parent fdf6e4169d
commit f9c1e12594

View File

@@ -335,7 +335,8 @@ static NTSTATUS check_sam_security(const struct auth_context *auth_context,
"(&(member=%s)(sAMAccountType=*))",
dn);
if (!(groupSIDs = talloc_realloc_p((*server_info)->mem_ctx, groupSIDs,
if (group_ret > 0 &&
!(groupSIDs = talloc_realloc_p((*server_info)->mem_ctx, groupSIDs,
struct dom_sid *, group_ret))) {
talloc_destroy((*server_info)->mem_ctx);
samdb_close(sam_ctx);