summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2000-01-24 23:12:02 +0000
committerJeremy Allison <jra@samba.org>2000-01-24 23:12:02 +0000
commit014bdf941f71447909d3d98974e543fbbebfd75e (patch)
tree8af661ec0bc9e51cbf77f5d415de13ef0d59a93b /source3
parent43f1d804af4034666d7ff8cbdda36dde357569ae (diff)
downloadsamba-014bdf941f71447909d3d98974e543fbbebfd75e.tar.gz
samba-014bdf941f71447909d3d98974e543fbbebfd75e.tar.bz2
samba-014bdf941f71447909d3d98974e543fbbebfd75e.zip
tdb record read error return check fix from Dave Airlie <airlied@samba.org>.
Jeremy. (This used to be commit 82c99dc8d8bc79e88f0db651f04fc23508195a51)
Diffstat (limited to 'source3')
-rw-r--r--source3/tdb/tdb.c2
1 files changed, 1 insertions, 1 deletions
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;
}