diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/core/ngx_open_file_cache.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/ngx_open_file_cache.c b/src/core/ngx_open_file_cache.c index 87104a04a..dab98b3ff 100644 --- a/src/core/ngx_open_file_cache.c +++ b/src/core/ngx_open_file_cache.c @@ -353,8 +353,8 @@ create: update: - if ((ngx_event_flags & NGX_USE_VNODE_EVENT) - && of->events + if (of->events + && (ngx_event_flags & NGX_USE_VNODE_EVENT) && of->fd != NGX_INVALID_FILE) { file->event = ngx_calloc(sizeof(ngx_event_t), pool->log); |