# HG changeset patch # User Igor Sysoev # Date 1237907018 0 # Node ID f9bd7999eb088dca2da22099ac4911356438eae7 # Parent 4ed2fa197a4a367f4a3c4e56c7a3c4397a64c004 fix segfault if ngx_read_file() will fail diff --git a/src/http/ngx_http_file_cache.c b/src/http/ngx_http_file_cache.c --- a/src/http/ngx_http_file_cache.c +++ b/src/http/ngx_http_file_cache.c @@ -251,6 +251,7 @@ ngx_http_file_cache_open(ngx_http_reques "http file cache fd: %d", of.fd); c->file.fd = of.fd; + c->file.log = r->connection->log; c->buf = ngx_create_temp_buf(r->pool, c->body_start); if (c->buf == NULL) {