mirror of
https://github.com/nginx/nginx.git
synced 2025-02-25 18:55:26 -06: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
@ -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…
Reference in New Issue
Block a user