summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/passdb/pdb_tdb.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source3/passdb/pdb_tdb.c b/source3/passdb/pdb_tdb.c
index 068ddb3692..9c8c7b8517 100644
--- a/source3/passdb/pdb_tdb.c
+++ b/source3/passdb/pdb_tdb.c
@@ -775,6 +775,7 @@ static int tdbsam_convert_one(struct db_record *rec, void *priv)
static bool tdbsam_convert(struct db_context *db, int32 from)
{
struct tdbsam_convert_state state;
+ int ret;
state.from = from;
state.success = true;
@@ -784,7 +785,8 @@ static bool tdbsam_convert(struct db_context *db, int32 from)
return false;
}
- if (db->traverse(db, tdbsam_convert_one, &state) != 0) {
+ ret = db->traverse(db, tdbsam_convert_one, &state);
+ if (ret < 0) {
DEBUG(0, ("traverse failed\n"));
goto cancel;
}