summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2008-03-27 16:55:35 +0100
committerMichael Adam <obnox@samba.org>2008-03-27 18:14:57 +0100
commit7d413b8beec4f47b1acd79bbcd1c9d1178a16d7a (patch)
tree880a75cb50a6f86d9a6e2cde0af6b5c4a0ebeae0
parent4b2ce410a5927089039d39bba3a4e6178930a65a (diff)
downloadsamba-7d413b8beec4f47b1acd79bbcd1c9d1178a16d7a.tar.gz
samba-7d413b8beec4f47b1acd79bbcd1c9d1178a16d7a.tar.bz2
samba-7d413b8beec4f47b1acd79bbcd1c9d1178a16d7a.zip
pdb_tdb: use db_sam->transaction_start(db_sam) != 0 consistent
metze Signed-off-by: Stefan Metzmacher <metze@samba.org> (This used to be commit 3bf9ab640e9a79157fcfee0b5d0cde5badc92755)
-rw-r--r--source3/passdb/pdb_tdb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/passdb/pdb_tdb.c b/source3/passdb/pdb_tdb.c
index 25aa6b4fb0..c3ee188010 100644
--- a/source3/passdb/pdb_tdb.c
+++ b/source3/passdb/pdb_tdb.c
@@ -1275,7 +1275,7 @@ static NTSTATUS tdbsam_rename_sam_account(struct pdb_methods *my_methods,
return NT_STATUS_ACCESS_DENIED;
}
- if (db_sam->transaction_start(db_sam) == -1) {
+ if (db_sam->transaction_start(db_sam) != 0) {
DEBUG(0, ("Could not start transaction\n"));
TALLOC_FREE(new_acct);
return NT_STATUS_ACCESS_DENIED;