v3-4-test: Protect against invalid winbindd_cache entries
authorVolker Lendecke <vl@samba.org>
Tue, 23 Nov 2010 13:49:12 +0000 (14:49 +0100)
committerVolker Lendecke <vl@samba.org>
Tue, 23 Nov 2010 16:54:15 +0000 (17:54 +0100)
source3/winbindd/winbindd_cache.c

index 28f6b57c0c2a14aa0eecdd7eecbb77ec8eb7331f..7df3bf323d8fd0c839cc06094fa84a9776d65098 100644 (file)
@@ -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 {