Skip to content

Commit bb939a1

Browse files
committed
Fixes after review
1 parent aeb5307 commit bb939a1

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

src/ngx_http_modsecurity_module.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -864,9 +864,9 @@ ngx_http_modsecurity_phase_time(ngx_http_request_t *r,
864864
return ngx_http_modsecurity_time_variable(r, v, data, ctx->resp_body_phase_time);
865865
case 4:
866866
return ngx_http_modsecurity_time_variable(r, v, data, ctx->logging_phase_time);
867+
default:
868+
return -1;
867869
}
868-
869-
return -1;
870870
}
871871

872872

src/ngx_http_modsecurity_rewrite.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ ngx_http_modsecurity_rewrite_handler(ngx_http_request_t *r)
5252
{
5353
int ret = 0;
5454
struct timespec start_tv;
55-
5655
(void) clock_gettime(CLOCK_MONOTONIC, &start_tv);
5756

5857
ngx_connection_t *connection = r->connection;
@@ -210,7 +209,6 @@ ngx_http_modsecurity_rewrite_handler(ngx_http_request_t *r)
210209
dd("Processing intervention with the request headers information filled in");
211210
ctx->req_headers_phase_time = ngx_http_modsecurity_compute_processing_time(start_tv);
212211
ret = ngx_http_modsecurity_process_intervention(ctx->modsec_transaction, r, 1);
213-
214212
if (r->error_page) {
215213
return NGX_DECLINED;
216214
}

0 commit comments

Comments
 (0)