summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorGregor Beck <gbeck@sernet.de>2011-07-05 13:41:12 +0200
committerMichael Adam <obnox@samba.org>2011-10-11 14:17:55 +0200
commitf5b7d87c2563d0753445da8c1b75e67bd7668967 (patch)
tree5775ad2cdd395f8e499e114f1eedc4a37bc3825c /source3
parent893805b99caeb6645c0688c9ec5b9466947dc454 (diff)
downloadsamba-f5b7d87c2563d0753445da8c1b75e67bd7668967.tar.gz
samba-f5b7d87c2563d0753445da8c1b75e67bd7668967.tar.bz2
samba-f5b7d87c2563d0753445da8c1b75e67bd7668967.zip
s3:dbwrap: dbwrap_parse_record() should always return -1 on "not found"
Signed-off-by: Michael Adam <obnox@samba.org>
Diffstat (limited to 'source3')
-rw-r--r--source3/lib/dbwrap/dbwrap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/lib/dbwrap/dbwrap.c b/source3/lib/dbwrap/dbwrap.c
index 5908e1ecb0..8cbf12e2b8 100644
--- a/source3/lib/dbwrap/dbwrap.c
+++ b/source3/lib/dbwrap/dbwrap.c
@@ -76,7 +76,7 @@ int dbwrap_fallback_parse_record(struct db_context *db, TDB_DATA key,
res = db->fetch(db, talloc_tos(), key, &data);
if (res != 0) {
- return res;
+ return -1;
}
res = parser(key, data, private_data);