aboutsummaryrefslogtreecommitdiffstats
path: root/src/libserver/rspamd_symcache.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2021-03-01 16:04:37 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2021-03-01 16:04:37 +0000
commitac376efeeee2c2cb603fa2a9feca84d8f7c9a478 (patch)
tree471741e6138f7f8f03abcc37e6741bfb848d0d11 /src/libserver/rspamd_symcache.c
parentb14e9419ca91f289fa717ce27da99819197ee57f (diff)
downloadrspamd-ac376efeeee2c2cb603fa2a9feca84d8f7c9a478.tar.gz
rspamd-ac376efeeee2c2cb603fa2a9feca84d8f7c9a478.zip
[Minor] Dmarc: Properly name a symbol
Diffstat (limited to 'src/libserver/rspamd_symcache.c')
-rw-r--r--src/libserver/rspamd_symcache.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/libserver/rspamd_symcache.c b/src/libserver/rspamd_symcache.c
index 1b02b62a8..6615cb14e 100644
--- a/src/libserver/rspamd_symcache.c
+++ b/src/libserver/rspamd_symcache.c
@@ -1441,9 +1441,11 @@ rspamd_symcache_validate_cb (gpointer k, gpointer v, gpointer ud)
}
if (!ghost && skipped) {
- item->type |= SYMBOL_TYPE_SKIPPED;
- msg_warn_cache ("symbol %s has no score registered, skip its check",
- item->symbol);
+ if (!(item->type & SYMBOL_TYPE_SKIPPED)) {
+ item->type |= SYMBOL_TYPE_SKIPPED;
+ msg_warn_cache ("symbol %s has no score registered, skip its check",
+ item->symbol);
+ }
}
if (ghost) {