diff options
-rw-r--r-- | src/libserver/symbols_cache.c | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/libserver/symbols_cache.c b/src/libserver/symbols_cache.c index b21caab8a..52b62fac5 100644 --- a/src/libserver/symbols_cache.c +++ b/src/libserver/symbols_cache.c @@ -863,10 +863,15 @@ rspamd_symbols_cache_metric_limit (struct rspamd_task *task, } } - g_assert (cp->rs != NULL); + if (cp->rs) { - if (cp->rs->score > cp->lim) { - return TRUE; + if (cp->rs->score > cp->lim) { + return TRUE; + } + } + else { + /* No reject score define, always check all rules */ + cp->lim = -1; } return FALSE; |