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.
This commit is contained in:
William Lallemand 2017-11-02 16:38:42 +01:00 committed by Willy Tarreau
parent b620e987d0
commit 9c54c53f2f

View File

@ -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) {