From 658f72128ff6950c6a03994198b4464a273fb300 Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Thu, 6 Oct 2011 21:07:27 +0200 Subject: s3:dbwrap: change dbwrap_fetch_uint32() to NTSTATUS return type (instead of bool) for consistency and better error propagation --- source3/passdb/pdb_tdb.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'source3/passdb/pdb_tdb.c') diff --git a/source3/passdb/pdb_tdb.c b/source3/passdb/pdb_tdb.c index 565dd5d309..80a4b49f9d 100644 --- a/source3/passdb/pdb_tdb.c +++ b/source3/passdb/pdb_tdb.c @@ -325,9 +325,10 @@ static bool tdbsam_upgrade_next_rid(struct db_context *db) TDB_CONTEXT *tdb; uint32 rid; bool ok = false; + NTSTATUS status; - ok = dbwrap_fetch_uint32(db, NEXT_RID_STRING, &rid); - if (ok) { + status = dbwrap_fetch_uint32(db, NEXT_RID_STRING, &rid); + if (NT_STATUS_IS_OK(status)) { return true; } -- cgit