|
|
Author: jra
Date: 2007-04-13 22:42:21 +0000 (Fri, 13 Apr 2007)
New Revision: 22210
WebSVN:
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=22210
Log:
Fix typo in testing for non-centry entries.
Jeremy.
Modified:
branches/SAMBA_3_0/source/nsswitch/winbindd_cache.c
branches/SAMBA_3_0_25/source/nsswitch/winbindd_cache.c
Changeset:
Modified: branches/SAMBA_3_0/source/nsswitch/winbindd_cache.c
===================================================================
--- branches/SAMBA_3_0/source/nsswitch/winbindd_cache.c 2007-04-13 22:29:50 UTC
(rev 22209)
+++ branches/SAMBA_3_0/source/nsswitch/winbindd_cache.c 2007-04-13 22:42:21 UTC
(rev 22210)
@@ -66,7 +66,7 @@
}
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) {
Modified: branches/SAMBA_3_0_25/source/nsswitch/winbindd_cache.c
===================================================================
--- branches/SAMBA_3_0_25/source/nsswitch/winbindd_cache.c 2007-04-13
22:29:50 UTC (rev 22209)
+++ branches/SAMBA_3_0_25/source/nsswitch/winbindd_cache.c 2007-04-13
22:42:21 UTC (rev 22210)
@@ -66,7 +66,7 @@
}
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) {
|
|