From 183e9336568f1fcf9360ea84270c580e23528ea6 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Tue, 23 Nov 2010 14:49:12 +0100 Subject: [PATCH] v3-4-test: Protect against invalid winbindd_cache entries --- source3/winbindd/winbindd_cache.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source3/winbindd/winbindd_cache.c b/source3/winbindd/winbindd_cache.c index 28f6b57c0c..7df3bf323d 100644 --- a/source3/winbindd/winbindd_cache.c +++ b/source3/winbindd/winbindd_cache.c @@ -1808,7 +1808,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 { -- 2.34.1