mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-08-09 16:47:18 +02:00
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:
parent
b620e987d0
commit
9c54c53f2f
@ -785,6 +785,9 @@ int cfg_cache_postparser()
|
|||||||
/* resolve the cache name to a ptr in the filter config */
|
/* resolve the cache name to a ptr in the filter config */
|
||||||
list_for_each_entry(fconf, &curproxy->filter_configs, list) {
|
list_for_each_entry(fconf, &curproxy->filter_configs, list) {
|
||||||
|
|
||||||
|
if (fconf->id != cache_store_flt_id)
|
||||||
|
continue;
|
||||||
|
|
||||||
cache_ptr = fconf->conf;
|
cache_ptr = fconf->conf;
|
||||||
|
|
||||||
list_for_each_entry(cache, &caches, list) {
|
list_for_each_entry(cache, &caches, list) {
|
||||||
|
Loading…
Reference in New Issue
Block a user