summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
Diffstat (limited to 'source3')
-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++)