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:
parent
b61b8ca494
commit
3bf9ab640e
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user