fix segfault introduced in r2602 if there is 502/504 error and proxy/fastcgi_cache is defined without proxy/fastcgi_cache_valid
Igor Sysoev
13 years ago
1 changed file(s) with
4 addition(s)
and
0 deletion(s)
.
Raw diff
Collapse all
Expand all
+4
-0
src/http/ngx_http_file_cache.c
less
more
1289
1289
ngx_uint_t i;
1290
1290
ngx_http_cache_valid_t *valid;
1291
1291
1292
if (cache_valid == NULL) {
1293
return 0;
1294
}
1295
1292
1296
valid = cache_valid->elts;
1293
1297
for (i = 0; i < cache_valid->nelts; i++) {
1294
1298