]> git.kaiwu.me - nginx.git/commitdiff
fix the previous commit
authorIgor Sysoev <igor@sysoev.ru>
Thu, 13 Mar 2008 13:00:40 +0000 (13:00 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Thu, 13 Mar 2008 13:00:40 +0000 (13:00 +0000)
src/core/ngx_open_file_cache.c

index 6bb6fd2520064c1e78b844e9261bb121d4c0d76b..a1692f1011a49a893d6468bf2fa8f07c32f286cd 100644 (file)
@@ -411,7 +411,7 @@ failed:
 
         cache->current--;
 
-        if (of->fd != NGX_INVALID_FILE) {
+        if (file->fd != NGX_INVALID_FILE) {
             if (ngx_close_file(file->fd) == NGX_FILE_ERROR) {
                 ngx_log_error(NGX_LOG_ALERT, pool->log, ngx_errno,
                               ngx_close_file_n " \"%s\" failed", file->name);