1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00

pdb_tdb: use db_sam->transaction_start(db_sam) != 0 consistent

metze

Signed-off-by: Stefan Metzmacher <metze@samba.org>
This commit is contained in:
Stefan Metzmacher 2008-03-27 16:55:35 +01:00 committed by Michael Adam
parent b61b8ca494
commit 3bf9ab640e

View File

@ -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;