mirror of
https://github.com/nginx/nginx.git
synced 2025-02-25 18:55:26 -06:00
fix segfault if ngx_read_file() will fail
This commit is contained in:
parent
63f52af737
commit
3afc10f507
@ -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…
Reference in New Issue
Block a user