From: William Lallemand Date: Thu, 2 Nov 2017 15:38:42 +0000 (+0100) Subject: BUG/MEDIUM: cache: don't try to resolve wrong filters X-Git-Tag: v1.8-rc2~9 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9c54c53f2fadea9aebe13ba61b0a45de0f63ec8b;p=thirdparty%2Fhaproxy.git BUG/MEDIUM: cache: don't try to resolve wrong filters Don't try to resolve wrong filters which are not cache filters during the post configuration callback. --- diff --git a/src/cache.c b/src/cache.c index 2d7cdcda00..15e221012d 100644 --- a/src/cache.c +++ b/src/cache.c @@ -785,6 +785,9 @@ int cfg_cache_postparser() /* resolve the cache name to a ptr in the filter config */ list_for_each_entry(fconf, &curproxy->filter_configs, list) { + if (fconf->id != cache_store_flt_id) + continue; + cache_ptr = fconf->conf; list_for_each_entry(cache, &caches, list) {