]> git.pld-linux.org Git - packages/nginx.git/commitdiff
- close open dir after HEAD
authorareq <areq@pld-linux.org>
Sat, 22 Sep 2007 18:06:06 +0000 (18:06 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    nginx-autoindexDoS.patch -> 1.1

nginx-autoindexDoS.patch [new file with mode: 0644]

diff --git a/nginx-autoindexDoS.patch b/nginx-autoindexDoS.patch
new file mode 100644 (file)
index 0000000..2d8bb88
--- /dev/null
@@ -0,0 +1,16 @@
+Index: src/http/modules/ngx_http_autoindex_module.c
+===================================================================
+--- src/http/modules/ngx_http_autoindex_module.c       (revision 818)
++++ src/http/modules/ngx_http_autoindex_module.c       (working copy)
+@@ -236,6 +236,11 @@
+     rc = ngx_http_send_header(r);
+     if (rc == NGX_ERROR || rc > NGX_OK || r->header_only) {
++        if (ngx_close_dir(&dir) == NGX_ERROR) {
++            ngx_log_error(NGX_LOG_ALERT, r->connection->log, ngx_errno,
++                          ngx_close_dir_n " \"%V\" failed", &path);
++        }
++
+         return rc;
+     }
This page took 0.045712 seconds and 4 git commands to generate.