]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
r4967: Not being in any domain local groups is obviously valid...
authorVolker Lendecke <vlendec@samba.org>
Mon, 24 Jan 2005 19:33:20 +0000 (19:33 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 15:55:10 +0000 (10:55 -0500)
Volker

source/nsswitch/winbindd_cache.c

index 460ce934cb7e2c80b149f73ea50057769bbf02de..3fc62df005f27d67527185fa0342f03c83bc51ee 100644 (file)
@@ -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++)