From f5b7d87c2563d0753445da8c1b75e67bd7668967 Mon Sep 17 00:00:00 2001 From: Gregor Beck Date: Tue, 5 Jul 2011 13:41:12 +0200 Subject: [PATCH] s3:dbwrap: dbwrap_parse_record() should always return -1 on "not found" Signed-off-by: Michael Adam --- source3/lib/dbwrap/dbwrap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source3/lib/dbwrap/dbwrap.c b/source3/lib/dbwrap/dbwrap.c index 5908e1ecb06..8cbf12e2b83 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);