diff options
author | Rusty Russell <rusty@rustcorp.com.au> | 2011-09-14 08:13:27 +0930 |
---|---|---|
committer | Rusty Russell <rusty@rustcorp.com.au> | 2011-09-14 08:13:27 +0930 |
commit | 45467c0118da0c1d4e5644f4570f10aafe37a8a7 (patch) | |
tree | 2a2ac047cbebc188d04e8171477fdabe23e957c9 /lib/tdb2 | |
parent | 5e3731a28101c0ee3435746e4b7340013477ad64 (diff) | |
download | samba-45467c0118da0c1d4e5644f4570f10aafe37a8a7.tar.gz samba-45467c0118da0c1d4e5644f4570f10aafe37a8a7.tar.bz2 samba-45467c0118da0c1d4e5644f4570f10aafe37a8a7.zip |
tdb2: set tdb_error() on tdb_transaction_prepare_commit.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
(Imported from CCAN commit feb36b14278b4230af70dab90369a345b6a027ef)
Diffstat (limited to 'lib/tdb2')
-rw-r--r-- | lib/tdb2/transaction.c | 2 |
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); } /* |