diff options
author | Jeremy Allison <jra@samba.org> | 2006-08-04 01:09:57 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 11:38:31 -0500 |
commit | 49051067785befb4e549248084f583bdcdc191da (patch) | |
tree | 40e1e1266db8a836b826f0275b1fcf7acba622aa /source3 | |
parent | 87b2b16cbf211675a23c4f4282f026098d7334ed (diff) | |
download | samba-49051067785befb4e549248084f583bdcdc191da.tar.gz samba-49051067785befb4e549248084f583bdcdc191da.tar.bz2 samba-49051067785befb4e549248084f583bdcdc191da.zip |
r17393: Remove Volker's ASSERT that num_groupsids > 0.
For guest connection they may well be zero.
This should fix up the buildfarm (fingers
crossed).
Jeremy.
(This used to be commit 16ebccbc5889c3b4c1a20bf3453bd523ddf6f5b0)
Diffstat (limited to 'source3')
-rw-r--r-- | source3/auth/auth_util.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/source3/auth/auth_util.c b/source3/auth/auth_util.c index 89792bca94..b7d3fdfcbd 100644 --- a/source3/auth/auth_util.c +++ b/source3/auth/auth_util.c @@ -829,9 +829,11 @@ static struct nt_user_token *create_local_nt_token(TALLOC_CTX *mem_ctx, add_sid_to_array(result, user_sid, &result->user_sids, &result->num_sids); - SMB_ASSERT(num_groupsids > 0); - add_sid_to_array(result, &groupsids[0], - &result->user_sids, &result->num_sids); + /* For guest, num_groupsids may be zero. */ + if (num_groupsids) { + add_sid_to_array(result, &groupsids[0], + &result->user_sids, &result->num_sids); + } /* Add in BUILTIN sids */ |