diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-02-15 16:58:00 +0000 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-02-15 16:58:00 +0000 |
commit | 434d713861b70f6c6563d6ee50a8e64f14c970d9 (patch) | |
tree | b72c523c72e764420f835ba9d63d43ffef687dcf /www-servers/nginx/files/http_security-pr_1373.patch | |
parent | f78108598211053d41752a83e0345441bb9014ae (diff) |
gentoo resync : 15.02.2018
Diffstat (limited to 'www-servers/nginx/files/http_security-pr_1373.patch')
-rw-r--r-- | www-servers/nginx/files/http_security-pr_1373.patch | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/www-servers/nginx/files/http_security-pr_1373.patch b/www-servers/nginx/files/http_security-pr_1373.patch deleted file mode 100644 index e4069e16330d..000000000000 --- a/www-servers/nginx/files/http_security-pr_1373.patch +++ /dev/null @@ -1,33 +0,0 @@ -From d19df159043106a4d6dfd113696900b5b0dae24b Mon Sep 17 00:00:00 2001 -From: Andrei Belov <defanator@gmail.com> -Date: Mon, 3 Apr 2017 12:52:01 +0300 -Subject: [PATCH] Fix building with nginx >= 1.11.11 - -Closes SpiderLabs/ModSecurity#1359 - -See also: -http://hg.nginx.org/nginx/rev/e662cbf1b932 ---- - nginx/modsecurity/ngx_http_modsecurity.c | 6 ++++++ - 1 file changed, 6 insertions(+) - -diff --git a/nginx/modsecurity/ngx_http_modsecurity.c b/nginx/modsecurity/ngx_http_modsecurity.c -index 7c13953..367b2b8 100644 ---- a/nginx/modsecurity/ngx_http_modsecurity.c -+++ b/nginx/modsecurity/ngx_http_modsecurity.c -@@ -528,9 +528,15 @@ ngx_http_modsecurity_save_request_body(ngx_http_request_t *r) - - hc = r->http_connection; - -+#if defined(nginx_version) && nginx_version >= 1011011 -+ if (hc->free && size == cscf->large_client_header_buffers.size) { -+ -+ buf = hc->free->buf; -+#else - if (hc->nfree && size == cscf->large_client_header_buffers.size) { - - buf = hc->free[--hc->nfree]; -+#endif - - ngx_log_debug2(NGX_LOG_DEBUG_HTTP, r->connection->log, 0, - "ModSecurity: use http free large header buffer: %p %uz", |