Skip to content

Commit 13f16cc

Browse files
Fabricio OliveiraFelipe Zimmerle
Fabricio Oliveira
authored and
Felipe Zimmerle
committed
Fix missing status_line when logging in nginx.
1 parent 4c711cc commit 13f16cc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apache2/mod_security2.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1279,7 +1279,7 @@ static int hook_log_transaction(request_rec *r) {
12791279

12801280
msr->r = r;
12811281
msr->response_status = r->status;
1282-
msr->status_line = ((r->status_line != NULL)
1282+
msr->status_line = ((r->status_line != NULL) && (*r->status_line != '\0')
12831283
? r->status_line : ap_get_status_line(r->status));
12841284
msr->response_protocol = get_response_protocol(origr);
12851285
msr->response_headers = apr_table_copy(msr->mp, r->headers_out);

0 commit comments

Comments
 (0)