mirror of
https://github.com/nginx/nginx.git
synced 2026-08-27 04:07:18 +00:00
Fixed null pointer dereference with $upstream_cache_last_modified.
This commit is contained in:
parent
bfda85b6e4
commit
0419933283
1 changed files with 2 additions and 1 deletions
|
|
@ -4555,7 +4555,8 @@ ngx_http_upstream_cache_last_modified(ngx_http_request_t *r,
|
|||
{
|
||||
u_char *p;
|
||||
|
||||
if (!r->upstream->conf->cache_revalidate
|
||||
if (r->upstream == NULL
|
||||
|| !r->upstream->conf->cache_revalidate
|
||||
|| r->upstream->cache_status != NGX_HTTP_CACHE_EXPIRED
|
||||
|| r->cache->last_modified == -1)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue