Skip to content

Commit b850c74

Browse files
author
Marc Stern
committed
We should have get the warning at lock time, so ignore it at unlock time
1 parent 449c080 commit b850c74

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

apache2/modsecurity.c

+2-1
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,8 @@ int msr_global_mutex_unlock(modsec_rec* msr, apr_global_mutex_t* lock, const cha
196196
}
197197

198198
int rc = apr_global_mutex_unlock(msr->modsecurity->auditlog_lock);
199-
if (rc != APR_SUCCESS) msr_log(msr, 1, "Audit log: Failed to lock global mutex: %s", get_apr_error(msr->mp, rc));
199+
// We should have get the warning at lock time, so ignore it here
200+
// if (rc != APR_SUCCESS) msr_log(msr, 1, "Audit log: Failed to unlock global mutex: %s", get_apr_error(msr->mp, rc));
200201
return rc;
201202
}
202203

0 commit comments

Comments
 (0)