diff options
| author | Igor Sysoev <igor@sysoev.ru> | 2009-03-24 15:03:38 +0000 |
|---|---|---|
| committer | Igor Sysoev <igor@sysoev.ru> | 2009-03-24 15:03:38 +0000 |
| commit | 3afc10f507b811a978b97580f07304c0cb243e1a (patch) | |
| tree | 30171945aa718c295ccff8fdf84c7008f05da31d | |
| parent | 63f52af737bbaab13a4dc35a1611b3f7fd4a4e8c (diff) | |
| download | nginx-3afc10f507b811a978b97580f07304c0cb243e1a.tar.gz nginx-3afc10f507b811a978b97580f07304c0cb243e1a.tar.bz2 | |
fix segfault if ngx_read_file() will fail
| -rw-r--r-- | src/http/ngx_http_file_cache.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/http/ngx_http_file_cache.c b/src/http/ngx_http_file_cache.c index 806364871..1e80a39ee 100644 --- 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_request_t *r) "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) { |
