From 947cef7c8c4cbb57462d740bcf5c980d8d4460a6 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 2aff589b..608f31c0 100644 --- a/apache2/msc_logging.c +++ b/apache2/msc_logging.c @@ -1897,7 +1897,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 {