]> source.dussan.org Git - rspamd.git/commitdiff
Add condition to fix inconsistent records in LRU cache.
authorVsevolod Stakhov <vsevolod@rambler-co.ru>
Tue, 14 Jun 2011 11:53:17 +0000 (15:53 +0400)
committerVsevolod Stakhov <vsevolod@rambler-co.ru>
Tue, 14 Jun 2011 11:53:17 +0000 (15:53 +0400)
src/plugins/spf.c

index a7c48e702d5165b252e9e85347356e46b74d624f..1f6dcf07114f0003d38ad47e39c441774eab39f3 100644 (file)
@@ -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);