1
0
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:
Andrew Bartlett 2018-06-25 16:46:29 +12:00
parent 2c883bd978
commit d18bae9169

View File

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