]> git.pld-linux.org Git - packages/nginx.git/blame - nginx-autoindexDoS.patch
- updated to 0.6.35
[packages/nginx.git] / nginx-autoindexDoS.patch
CommitLineData
01a88348 1Index: src/http/modules/ngx_http_autoindex_module.c
2===================================================================
3--- src/http/modules/ngx_http_autoindex_module.c (revision 818)
4+++ src/http/modules/ngx_http_autoindex_module.c (working copy)
5@@ -236,6 +236,11 @@
6 rc = ngx_http_send_header(r);
7
8 if (rc == NGX_ERROR || rc > NGX_OK || r->header_only) {
9+ if (ngx_close_dir(&dir) == NGX_ERROR) {
10+ ngx_log_error(NGX_LOG_ALERT, r->connection->log, ngx_errno,
11+ ngx_close_dir_n " \"%V\" failed", &path);
12+ }
13+
14 return rc;
15 }
16
This page took 0.057437 seconds and 4 git commands to generate.