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)
6 rc = ngx_http_send_header(r);
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);