summaryrefslogtreecommitdiff
path: root/lib/tdb2
diff options
context:
space:
mode:
Diffstat (limited to 'lib/tdb2')
-rw-r--r--lib/tdb2/transaction.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/tdb2/transaction.c b/lib/tdb2/transaction.c
index 10f4862c6e..1f5709bf43 100644
--- a/lib/tdb2/transaction.c
+++ b/lib/tdb2/transaction.c
@@ -1067,7 +1067,7 @@ enum TDB_ERROR tdb_transaction_prepare_commit(struct tdb_context *tdb)
return tdb->last_error;
return TDB_SUCCESS;
}
- return _tdb_transaction_prepare_commit(tdb);
+ return tdb->last_error = _tdb_transaction_prepare_commit(tdb);
}
/*