summaryrefslogtreecommitdiff
path: root/source3/nsswitch
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2005-01-24 19:33:20 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 10:55:10 -0500
commitd1b7d109fa2b0c4a4b410ecf18b2f457cf90fcf5 (patch)
treebc5f132f3683db4fdd93e91a4dd3bf657eec9e7e /source3/nsswitch
parent5ee21705191a2f74c984b267bbc80259cbd2e68a (diff)
downloadsamba-d1b7d109fa2b0c4a4b410ecf18b2f457cf90fcf5.tar.gz
samba-d1b7d109fa2b0c4a4b410ecf18b2f457cf90fcf5.tar.bz2
samba-d1b7d109fa2b0c4a4b410ecf18b2f457cf90fcf5.zip
r4967: Not being in any domain local groups is obviously valid...
Volker (This used to be commit 78975ab9a996ac61be37410f18ddedb9df58d04b)
Diffstat (limited to 'source3/nsswitch')
-rw-r--r--source3/nsswitch/winbindd_cache.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/nsswitch/winbindd_cache.c b/source3/nsswitch/winbindd_cache.c
index 460ce934cb..3fc62df005 100644
--- a/source3/nsswitch/winbindd_cache.c
+++ b/source3/nsswitch/winbindd_cache.c
@@ -1243,7 +1243,7 @@ static NTSTATUS lookup_useraliases(struct winbindd_domain *domain,
(*alias_rids) = TALLOC_ARRAY(mem_ctx, uint32, *num_aliases);
- if (!(*alias_rids))
+ if ((*num_aliases != 0) && ((*alias_rids) == NULL))
return NT_STATUS_NO_MEMORY;
for (i=0; i<(*num_aliases); i++)