summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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) {