Skip to content

Commit 7d2a4ee

Browse files
committed
Fix the calculation for the request body buffer size
1 parent 5d0403e commit 7d2a4ee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ngx_http_modsecurity_pre_access.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ ngx_http_modsecurity_pre_access_handler(ngx_http_request_t *r)
160160
u_char *data = chain->buf->start;
161161

162162
msc_append_request_body(ctx->modsec_transaction, data,
163-
chain->buf->end - data);
163+
chain->buf->last - chain->buf->pos);
164164

165165
if (chain->buf->last_buf) {
166166
break;

0 commit comments

Comments
 (0)