mirror of
https://github.com/nginx/nginx.git
synced 2026-06-27 12:21:57 +00:00
fix segfault introduced in r2602 if there is 502/504 error
and proxy/fastcgi_cache is defined without proxy/fastcgi_cache_valid
This commit is contained in:
parent
f072a02ec5
commit
91db11b32c
1 changed files with 4 additions and 0 deletions
|
|
@ -1290,6 +1290,10 @@ ngx_http_file_cache_valid(ngx_array_t *cache_valid, ngx_uint_t status)
|
|||
ngx_uint_t i;
|
||||
ngx_http_cache_valid_t *valid;
|
||||
|
||||
if (cache_valid == NULL) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
valid = cache_valid->elts;
|
||||
for (i = 0; i < cache_valid->nelts; i++) {
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue