Klaus Demo nginx / 91db11b
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
12891289 ngx_uint_t i;
12901290 ngx_http_cache_valid_t *valid;
12911291
1292 if (cache_valid == NULL) {
1293 return 0;
1294 }
1295
12921296 valid = cache_valid->elts;
12931297 for (i = 0; i < cache_valid->nelts; i++) {
12941298