summaryrefslogtreecommitdiffstats
path: root/src/hs_helper.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rspamd.com>2022-07-08 22:08:32 +0100
committerVsevolod Stakhov <vsevolod@rspamd.com>2022-07-08 22:08:32 +0100
commit00ba1b52b7c59fb9d78b6dcd9b1dcd083625be2f (patch)
tree4df50e98e8ce41f684f61f421917bf4f0a6b89ef /src/hs_helper.c
parent7374691f84fd8e0cc64877ad6e42c6d8b3b784b8 (diff)
downloadrspamd-00ba1b52b7c59fb9d78b6dcd9b1dcd083625be2f.tar.gz
rspamd-00ba1b52b7c59fb9d78b6dcd9b1dcd083625be2f.zip
[Fix] Remove check for a score with no symbol being registered
This check is redundant and has proven to confuse users who want to disable some rules. Indeed, if we are looking for a way to hint a user that the registered symbol `example` does not match with the scored symbol `exmaple` (e.g. incorrect spelling), then this error will be detected when we match symcache entries and the scores. The opposite check is useless to prevent such an error. And since it is much harder to define a dangling score with no real symbol, we can just ignore this possibility in general, since the FP for this check, specifically when some rule got intentionally disabled but a score is not removed just annoys users for no good reason.
Diffstat (limited to 'src/hs_helper.c')
0 files changed, 0 insertions, 0 deletions