From ced6b128989d02da4c55f61b1c4f024604a28927 Mon Sep 17 00:00:00 2001 From: root Date: Tue, 14 Sep 2021 14:45:18 +0200 Subject: [PATCH] Fix logging format string --- src/mod_security3.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/mod_security3.c b/src/mod_security3.c index 76b3fb7..566df8a 100644 --- a/src/mod_security3.c +++ b/src/mod_security3.c @@ -22,13 +22,11 @@ void modsecurity_log_cb(void *log, const void* data) #if AP_SERVER_MAJORVERSION_NUMBER > 1 && AP_SERVER_MINORVERSION_NUMBER > 2 ap_log_rerror(APLOG_MARK, APLOG_ERR | APLOG_NOERRNO, 0, r, - msg, - r->status); + "%s", msg); #else ap_log_error(APLOG_MARK, APLOG_ERR | APLOG_NOERRNO, 0, r->server, - msg, - r->status); + "%s", msg); #endif }