mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-09-29 19:24:29 +03:00
Fixed parameters/functions names
This commit is contained in:
@@ -179,7 +179,7 @@ int msr_global_mutex_lock(modsec_rec* msr, apr_global_mutex_t* lock, const char*
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
int rc = apr_global_mutex_lock(msr->modsecurity->auditlog_lock);
|
int rc = apr_global_mutex_lock(lock);
|
||||||
if (rc != APR_SUCCESS) msr_log(msr, 1, "Audit log: Failed to lock global mutex: %s", get_apr_error(msr->mp, rc));
|
if (rc != APR_SUCCESS) msr_log(msr, 1, "Audit log: Failed to lock global mutex: %s", get_apr_error(msr->mp, rc));
|
||||||
return rc;
|
return rc;
|
||||||
}
|
}
|
||||||
@@ -195,7 +195,7 @@ int msr_global_mutex_unlock(modsec_rec* msr, apr_global_mutex_t* lock, const cha
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
int rc = apr_global_mutex_unlock(msr->modsecurity->auditlog_lock);
|
int rc = apr_global_mutex_unlock(lock);
|
||||||
// We should have get the warning at lock time, so ignore it here
|
// We should have get the warning at lock time, so ignore it here
|
||||||
// if (rc != APR_SUCCESS) msr_log(msr, 1, "Audit log: Failed to unlock global mutex: %s", get_apr_error(msr->mp, rc));
|
// if (rc != APR_SUCCESS) msr_log(msr, 1, "Audit log: Failed to unlock global mutex: %s", get_apr_error(msr->mp, rc));
|
||||||
return rc;
|
return rc;
|
||||||
|
@@ -1465,7 +1465,7 @@ void sec_audit_logger_json(modsec_rec *msr) {
|
|||||||
*/
|
*/
|
||||||
if (msr->txcfg->auditlog_type != AUDITLOG_CONCURRENT) {
|
if (msr->txcfg->auditlog_type != AUDITLOG_CONCURRENT) {
|
||||||
/* Unlock the mutex we used to serialise access to the audit log file. */
|
/* Unlock the mutex we used to serialise access to the audit log file. */
|
||||||
msr_global_mutex_lock(msr, msr->modsecurity->auditlog_lock, "Audit log");
|
msr_global_mutex_unlock(msr, msr->modsecurity->auditlog_lock, "Audit log");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -2236,7 +2236,7 @@ void sec_audit_logger_native(modsec_rec *msr) {
|
|||||||
if (msr->txcfg->auditlog_type != AUDITLOG_CONCURRENT) {
|
if (msr->txcfg->auditlog_type != AUDITLOG_CONCURRENT) {
|
||||||
sec_auditlog_write(msr, "\n", 1);
|
sec_auditlog_write(msr, "\n", 1);
|
||||||
/* Unlock the mutex we used to serialise access to the audit log file. */
|
/* Unlock the mutex we used to serialise access to the audit log file. */
|
||||||
msr_global_mutex_lock(msr, msr->modsecurity->auditlog_lock, "Audit log");
|
msr_global_mutex_unlock(msr, msr->modsecurity->auditlog_lock, "Audit log");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user