From 8889d879cba74f2d30512fc2c631cc0ed1a0c6c6 Mon Sep 17 00:00:00 2001 From: Chaim sanders Date: Wed, 22 Jun 2016 19:23:13 -0400 Subject: [PATCH] Adapted patch from 977 to fix status failing to report in Nginx auditlogs --- apache2/msc_logging.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apache2/msc_logging.c b/apache2/msc_logging.c index 66394adab2..56a98617fd 100644 --- a/apache2/msc_logging.c +++ b/apache2/msc_logging.c @@ -1895,7 +1895,7 @@ void sec_audit_logger_native(modsec_rec *msr) { /* There are no response headers (or the status line) in HTTP 0.9 */ if (msr->response_headers_sent) { - if (msr->status_line != NULL) { + if (msr->status_line != NULL && msr->status_line[0] != '\0') { text = apr_psprintf(msr->mp, "%s %s\n", msr->response_protocol, msr->status_line); } else {