From 52c0fb359fceb730d0f2f3b62232019cb712cb1b Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Tue, 23 Nov 2010 14:49:12 +0100 Subject: s3:winbind: Protect against invalid winbindd_cache entries in lookuprids --- source3/winbindd/winbindd_cache.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'source3/winbindd') diff --git a/source3/winbindd/winbindd_cache.c b/source3/winbindd/winbindd_cache.c index 37291a70ab..832e8efe3c 100644 --- a/source3/winbindd/winbindd_cache.c +++ b/source3/winbindd/winbindd_cache.c @@ -2042,7 +2042,8 @@ static NTSTATUS rids_to_names(struct winbindd_domain *domain, (*names)[i] = centry_string(centry, *names); - } else if (NT_STATUS_EQUAL(centry->status, NT_STATUS_NONE_MAPPED)) { + } else if (NT_STATUS_EQUAL(centry->status, NT_STATUS_NONE_MAPPED) + || NT_STATUS_EQUAL(centry->status, STATUS_SOME_UNMAPPED)) { have_unmapped = true; } else { -- cgit