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 used to be commit b89ecbcac6)
This commit is contained in:
Jeremy Allison 2007-04-13 22:42:21 +00:00 committed by Gerald (Jerry) Carter
parent c7d136dcac
commit 91be3a9ed6

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