diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-07-03 08:52:31 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-07-03 08:52:31 +0100 |
commit | 6a2fcfc30cb8b0051c10f6e5794565e3176dbe61 (patch) | |
tree | 8b4c3d867c6b53edc8e892b9c6c31cf788ec83e7 /src/plugins/spf.c | |
parent | 6cd82ee7c36488ee629f062e1afa2f9219cef1b1 (diff) | |
download | rspamd-6a2fcfc30cb8b0051c10f6e5794565e3176dbe61.tar.gz rspamd-6a2fcfc30cb8b0051c10f6e5794565e3176dbe61.zip |
[Fix] Do not cache SPF records with macros
Diffstat (limited to 'src/plugins/spf.c')
-rw-r--r-- | src/plugins/spf.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/plugins/spf.c b/src/plugins/spf.c index 275f937ce..097df7329 100644 --- a/src/plugins/spf.c +++ b/src/plugins/spf.c @@ -529,7 +529,10 @@ spf_plugin_callback (struct spf_resolved *record, struct rspamd_task *task, l = spf_record_ref (record); - if (!record->temp_failed && !record->perm_failed && !record->na) { + if (record->ttl > 0 && + !record->temp_failed && + !record->perm_failed && + !record->na) { rspamd_lru_hash_insert (spf_module_ctx->spf_hash, record->domain, l, task->tv.tv_sec, record->ttl); |