Skip to content

Commit ced6b12

Browse files
author
root
committed
Fix logging format string
1 parent 0488c77 commit ced6b12

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

src/mod_security3.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,11 @@ void modsecurity_log_cb(void *log, const void* data)
2222

2323
#if AP_SERVER_MAJORVERSION_NUMBER > 1 && AP_SERVER_MINORVERSION_NUMBER > 2
2424
ap_log_rerror(APLOG_MARK, APLOG_ERR | APLOG_NOERRNO, 0, r,
25-
msg,
26-
r->status);
25+
"%s", msg);
2726

2827
#else
2928
ap_log_error(APLOG_MARK, APLOG_ERR | APLOG_NOERRNO, 0, r->server,
30-
msg,
31-
r->status);
29+
"%s", msg);
3230
#endif
3331

3432
}

0 commit comments

Comments
 (0)