summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2005-08-30 01:58:03 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:34:59 -0500
commit8012fb2cfeede6ecae1346725141354f2897887e (patch)
tree3bf9d06f92768d37150d9da4513808c5f6551000 /source4
parentcae788d5608b287b2c970ab28c0361350a5c7e95 (diff)
downloadsamba-8012fb2cfeede6ecae1346725141354f2897887e.tar.gz
samba-8012fb2cfeede6ecae1346725141354f2897887e.tar.bz2
samba-8012fb2cfeede6ecae1346725141354f2897887e.zip
r9774: r11605@blu: tridge | 2005-08-30 12:02:19 +1000
make sure we don't walk off the end of the hash array (This used to be commit 3c32f24e2c6a99ec294fb16e1684cd22b08f2df4)
Diffstat (limited to 'source4')
-rw-r--r--source4/lib/tdb/common/tdb.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source4/lib/tdb/common/tdb.c b/source4/lib/tdb/common/tdb.c
index d6861efe13..3477d7e4be 100644
--- a/source4/lib/tdb/common/tdb.c
+++ b/source4/lib/tdb/common/tdb.c
@@ -1287,6 +1287,9 @@ static int tdb_next_lock(TDB_CONTEXT *tdb, struct tdb_traverse_lock *tlock,
break;
}
}
+ if (tlock->hash == tdb->header.hash_size) {
+ continue;
+ }
} else {
if (ofs_read(tdb, TDB_HASH_TOP(tlock->hash), &off) == 0 &&
off == 0) {