v3-4-test: Protect against invalid winbindd_cache entries
[obnox/samba-ctdb.git] / 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 {