mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-08-14 13:56:01 +03:00
Fix bugs introduced by the recent change to audit logging.
This commit is contained in:
parent
ab6a81fe7a
commit
fd5e4fb32c
@ -30,8 +30,8 @@ static int sec_auditlog_write(modsec_rec *msr, const char *data, unsigned int le
|
||||
* even in cases where write fails. That will make it easier to detect
|
||||
* problems with partial writes.
|
||||
*/
|
||||
msr->new_auditlog_size += nbytes_written;
|
||||
apr_md5_update(&msr->new_auditlog_md5ctx, data, nbytes_written);
|
||||
msr->new_auditlog_size += len;
|
||||
apr_md5_update(&msr->new_auditlog_md5ctx, data, len);
|
||||
|
||||
/* Do not write if we do not have a file descriptor. */
|
||||
if (msr->new_auditlog_fd == NULL) return -1;
|
||||
|
Loading…
x
Reference in New Issue
Block a user