Skip to content

Commit 947cef7

Browse files
Chaim sanderszimmerle
authored andcommitted
Adapted patch from 977 to fix status failing to report in Nginx auditlogs
1 parent 2538d90 commit 947cef7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apache2/msc_logging.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1897,7 +1897,7 @@ void sec_audit_logger_native(modsec_rec *msr) {
18971897

18981898
/* There are no response headers (or the status line) in HTTP 0.9 */
18991899
if (msr->response_headers_sent) {
1900-
if (msr->status_line != NULL) {
1900+
if (msr->status_line != NULL && msr->status_line[0] != '\0') {
19011901
text = apr_psprintf(msr->mp, "%s %s\n", msr->response_protocol,
19021902
msr->status_line);
19031903
} else {

0 commit comments

Comments
 (0)