diff options
Diffstat (limited to 'source')
-rw-r--r-- | source/tdb/tdb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/tdb/tdb.c b/source/tdb/tdb.c index c5522bbf4b9..feb925d978b 100644 --- a/source/tdb/tdb.c +++ b/source/tdb/tdb.c @@ -818,7 +818,7 @@ TDB_DATA tdb_nextkey(TDB_CONTEXT *tdb, TDB_DATA key) } /* Read the record. */ - if (rec_read(tdb, rec_ptr, &rec) == 0) { + if (rec_read(tdb, rec_ptr, &rec) == -1) { tdb_unlock(tdb, hbucket); return null_data; } |