1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00

r22210: Fix typo in testing for non-centry entries.

Jeremy.
This commit is contained in:
Jeremy Allison 2007-04-13 22:42:21 +00:00 committed by Gerald (Jerry) Carter
parent c52c7f91af
commit b89ecbcac6

View File

@ -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) {