]> git.pld-linux.org Git - packages/nginx.git/blob - nginx-autoindexDoS.patch
- deja vu ?
[packages/nginx.git] / nginx-autoindexDoS.patch
1 Index: 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.200006 seconds and 3 git commands to generate.