From: Jeremy Allison Date: Fri, 13 Apr 2007 22:42:21 +0000 (+0000) Subject: r22210: Fix typo in testing for non-centry entries. X-Git-Tag: samba-misc-tags/initial-v3-0-unstable~719 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b89ecbcac651034d818a41d8a1d0c5e7313f37b8;p=thirdparty%2Fsamba.git r22210: Fix typo in testing for non-centry entries. Jeremy. --- diff --git a/source/nsswitch/winbindd_cache.c b/source/nsswitch/winbindd_cache.c index 6b9721a83b9..cc98e79ee97 100644 --- a/source/nsswitch/winbindd_cache.c +++ b/source/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) {