Adapted patch from 977 to fix status failing to report in Nginx auditlogs

This commit is contained in:
Chaim sanders 2016-06-22 19:23:13 -04:00 committed by Felipe Zimmerle
parent 2538d90e5f
commit 947cef7c8c
No known key found for this signature in database
GPG Key ID: E6DFB08CE8B11277

View File

@ -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 {