diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2011-06-14 15:53:17 +0400 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2011-06-14 15:53:17 +0400 |
commit | 133f27e620f19bb2d10714edb8a97ff01e4201d8 (patch) | |
tree | 595930c38cd921db8d5d7324cc147dd018a842f6 | |
parent | 6cc3dbcd189a6e4c4dc234a61efda1482674b65d (diff) | |
download | rspamd-133f27e620f19bb2d10714edb8a97ff01e4201d8.tar.gz rspamd-133f27e620f19bb2d10714edb8a97ff01e4201d8.zip |
Add condition to fix inconsistent records in LRU cache.
-rw-r--r-- | src/plugins/spf.c | 3 |
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); |