From 014bdf941f71447909d3d98974e543fbbebfd75e Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Mon, 24 Jan 2000 23:12:02 +0000 Subject: tdb record read error return check fix from Dave Airlie . Jeremy. (This used to be commit 82c99dc8d8bc79e88f0db651f04fc23508195a51) --- source3/tdb/tdb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source3/tdb') diff --git a/source3/tdb/tdb.c b/source3/tdb/tdb.c index c5522bbf4b..feb925d978 100644 --- a/source3/tdb/tdb.c +++ b/source3/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; } -- cgit