From d1b7d109fa2b0c4a4b410ecf18b2f457cf90fcf5 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Mon, 24 Jan 2005 19:33:20 +0000 Subject: r4967: Not being in any domain local groups is obviously valid... Volker (This used to be commit 78975ab9a996ac61be37410f18ddedb9df58d04b) --- source3/nsswitch/winbindd_cache.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source3') 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++) -- cgit