summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rambler-co.ru>2011-06-14 15:53:17 +0400
committerVsevolod Stakhov <vsevolod@rambler-co.ru>2011-06-14 15:53:17 +0400
commit133f27e620f19bb2d10714edb8a97ff01e4201d8 (patch)
tree595930c38cd921db8d5d7324cc147dd018a842f6
parent6cc3dbcd189a6e4c4dc234a61efda1482674b65d (diff)
downloadrspamd-133f27e620f19bb2d10714edb8a97ff01e4201d8.tar.gz
rspamd-133f27e620f19bb2d10714edb8a97ff01e4201d8.zip
Add condition to fix inconsistent records in LRU cache.
-rw-r--r--src/plugins/spf.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/plugins/spf.c b/src/plugins/spf.c
index a7c48e702..1f6dcf071 100644
--- a/src/plugins/spf.c
+++ b/src/plugins/spf.c
@@ -218,7 +218,8 @@ static void
spf_plugin_callback (struct spf_record *record, struct worker_task *task)
{
GList *l;
- if (record) {
+
+ if (record && record->addrs) {
if ((l = rspamd_lru_hash_lookup (spf_module_ctx->spf_hash, record->sender_domain, task->tv.tv_sec)) == NULL) {
l = spf_record_copy (record->addrs);