mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
dsdb: Use GUID_zero() rather than memset in dsdb audit code
Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
This commit is contained in:
parent
2c883bd978
commit
d18bae9169
@ -1464,7 +1464,7 @@ static int log_end_transaction(struct ldb_module *module)
|
||||
/*
|
||||
* Clear the transaction id inserted by log_start_transaction
|
||||
*/
|
||||
memset(&audit_private->transaction_guid, 0, sizeof(struct GUID));
|
||||
audit_private->transaction_guid = GUID_zero();
|
||||
return ret;
|
||||
}
|
||||
|
||||
@ -1485,7 +1485,7 @@ static int log_del_transaction(struct ldb_module *module)
|
||||
struct audit_private);
|
||||
|
||||
log_transaction(module, "rollback", TRANSACTION_LOG_FAILURE_LVL);
|
||||
memset(&audit_private->transaction_guid, 0, sizeof(struct GUID));
|
||||
audit_private->transaction_guid = GUID_zero();
|
||||
return ldb_next_del_trans(module);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user