1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00

s3:mapping_tdb: fix the del_aliasmem() function

We should not cancel the transaction, when we want to delete a key.

metze
This commit is contained in:
Stefan Metzmacher 2008-09-18 05:01:47 +02:00 committed by Michael Adam
parent ec63cd6a7f
commit 0ee4d20adb

View File

@ -666,8 +666,7 @@ static NTSTATUS del_aliasmem(const DOM_SID *alias, const DOM_SID *member)
if (num == 0) {
status = dbwrap_delete_bystring(db, key);
TALLOC_FREE(sids);
goto cancel;
goto commit;
}
member_string = talloc_strdup(sids, "");
@ -693,7 +692,7 @@ static NTSTATUS del_aliasmem(const DOM_SID *alias, const DOM_SID *member)
status = dbwrap_store_bystring(
db, key, string_term_tdb_data(member_string), 0);
commit:
TALLOC_FREE(sids);
if (!NT_STATUS_IS_OK(status)) {