summaryrefslogtreecommitdiff
path: root/source3/winbindd
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2010-11-23 14:49:12 +0100
committerMichael Adam <obnox@samba.org>2011-01-21 10:10:03 +0100
commit52c0fb359fceb730d0f2f3b62232019cb712cb1b (patch)
tree05e786400a26afd5b7059af26338f38911344792 /source3/winbindd
parent64f8306e8eeda9219694a2490217b624aa004d9f (diff)
downloadsamba-52c0fb359fceb730d0f2f3b62232019cb712cb1b.tar.gz
samba-52c0fb359fceb730d0f2f3b62232019cb712cb1b.tar.bz2
samba-52c0fb359fceb730d0f2f3b62232019cb712cb1b.zip
s3:winbind: Protect against invalid winbindd_cache entries in lookuprids
Diffstat (limited to 'source3/winbindd')
-rw-r--r--source3/winbindd/winbindd_cache.c3
1 files changed, 2 insertions, 1 deletions
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 {