]> git.ipfire.org Git - thirdparty/rspamd.git/commit
[Fix] re_cache: Respect disable_hyperscan option in loading functions
authorVsevolod Stakhov <vsevolod@rspamd.com>
Thu, 5 Feb 2026 08:58:53 +0000 (08:58 +0000)
committerVsevolod Stakhov <vsevolod@rspamd.com>
Thu, 5 Feb 2026 08:58:53 +0000 (08:58 +0000)
commit7b485097dec75580eabc958497427dc09183f5ee
tree67db5d1e1bf100e00d95759ae352d8c81e2e7a10
parentf18410725bd8c74b68c5fe300dde05283acb8590
[Fix] re_cache: Respect disable_hyperscan option in loading functions

Add checks for disable_hyperscan at the start of hyperscan loading
functions to prevent database loading when the option is set.

Previously, hyperscan databases would still be loaded even with
disable_hyperscan = true, causing unnecessary I/O and memory usage.
src/libserver/re_cache.c