Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit1bb2ffc

Browse files
defanatorFelipe Zimmerle
authored and
Felipe Zimmerle
committed
Fix building with nginx >= 1.11.11
Closesowasp-modsecurity#1359See also:http://hg.nginx.org/nginx/rev/e662cbf1b932
1 parentb6053df commit1bb2ffc

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

‎nginx/modsecurity/ngx_http_modsecurity.c‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -528,9 +528,15 @@ ngx_http_modsecurity_save_request_body(ngx_http_request_t *r)
528528

529529
hc=r->http_connection;
530530

531+
#if defined(nginx_version)&&nginx_version >=1011011
532+
if (hc->free&&size==cscf->large_client_header_buffers.size) {
533+
534+
buf=hc->free->buf;
535+
#else
531536
if (hc->nfree&&size==cscf->large_client_header_buffers.size) {
532537

533538
buf=hc->free[--hc->nfree];
539+
#endif
534540

535541
ngx_log_debug2(NGX_LOG_DEBUG_HTTP,r->connection->log,0,
536542
"ModSecurity: use http free large header buffer: %p %uz",

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp