Skip to content

Commit

Permalink
Adapted patch from 977 to fix status failing to report in Nginx audit…
Browse files Browse the repository at this point in the history
…logs
  • Loading branch information
Chaim sanders authored and zimmerle committed Jul 11, 2016
1 parent 2538d90 commit 947cef7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apache2/msc_logging.c
Expand Up @@ -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 {
Expand Down

0 comments on commit 947cef7

Please sign in to comment.