summaryrefslogtreecommitdiff
path: root/source3/nsswitch
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2007-04-13 22:42:21 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:19:20 -0500
commit91be3a9ed6e5f915d80ed7d78867b8513735e912 (patch)
tree837287935b98a643a63fcb63a5c020e7a446a518 /source3/nsswitch
parentc7d136dcac6fa1854f0115ccfd85ebcbb092c79a (diff)
downloadsamba-91be3a9ed6e5f915d80ed7d78867b8513735e912.tar.gz
samba-91be3a9ed6e5f915d80ed7d78867b8513735e912.tar.bz2
samba-91be3a9ed6e5f915d80ed7d78867b8513735e912.zip
r22210: Fix typo in testing for non-centry entries.
Jeremy. (This used to be commit b89ecbcac651034d818a41d8a1d0c5e7313f37b8)
Diffstat (limited to 'source3/nsswitch')
-rw-r--r--source3/nsswitch/winbindd_cache.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/nsswitch/winbindd_cache.c b/source3/nsswitch/winbindd_cache.c
index 6b9721a83b..cc98e79ee9 100644
--- a/source3/nsswitch/winbindd_cache.c
+++ b/source3/nsswitch/winbindd_cache.c
@@ -66,7 +66,7 @@ static BOOL is_non_centry_key(TDB_DATA kbuf)
}
for (i = 0; non_centry_keys[i] != NULL; i++) {
size_t namelen = strlen(non_centry_keys[i]);
- if (kbuf.dsize <= namelen) {
+ if (kbuf.dsize < namelen) {
continue;
}
if (strncmp(non_centry_keys[i], (const char *)kbuf.dptr, namelen) == 0) {