mirror of
https://github.com/nginx/nginx.git
synced 2026-08-27 04:07:18 +00:00
fix segfault if ngx_read_file() will fail
This commit is contained in:
parent
63f52af737
commit
3afc10f507
1 changed files with 1 additions and 0 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue