]>
Commit | Line | Data |
---|---|---|
01a88348 | 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 |