]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: filters: Don't try to init filters for disabled proxies
authorChristopher Faulet <cfaulet@haproxy.com>
Mon, 2 Nov 2020 15:08:09 +0000 (16:08 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Tue, 3 Nov 2020 09:23:00 +0000 (10:23 +0100)
commit400829cd2c6d734dbdd073d7a30d1e258fd2d1a0
tree46a1856b8c1fdcfc71c57544d9d3a98cc876df18
parentc9dfee43f3f7ac4e17b99435dd0db8b37e7490e8
BUG/MEDIUM: filters: Don't try to init filters for disabled proxies

Configuration is parsed for such proxies but not validated. Concretely, it means
check_config_validity() function does almost nothing for such proxies. Thus, we
must be careful to not initialize filters for disabled proxies because the check
callback function is not called. In fact, to be sure to avoid any trouble,
filters for disabled proxies are released.

This patch fixes a segfault at startup if the SPOE is configured for a disabled
proxy. It must be backported as far as 1.7 (maybe with some adaptations).
src/filters.c