Skip to content

Commit b4ef9e5

Browse files
Fabricio Oliveirachewi
Fabricio Oliveira
authored andcommitted
Fix missing status_line when logging in nginx.
1 parent 556e56f commit b4ef9e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apache2/mod_security2.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1286,7 +1286,7 @@ static int hook_log_transaction(request_rec *r) {
12861286

12871287
msr->r = r;
12881288
msr->response_status = r->status;
1289-
msr->status_line = ((r->status_line != NULL)
1289+
msr->status_line = ((r->status_line != NULL) && (*r->status_line != '\0')
12901290
? r->status_line : ap_get_status_line(r->status));
12911291
msr->response_protocol = get_response_protocol(origr);
12921292
msr->response_headers = apr_table_copy(msr->mp, r->headers_out);

0 commit comments

Comments
 (0)