]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Fix spf record saving
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 20 Jul 2018 16:32:09 +0000 (17:32 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 20 Jul 2018 16:32:09 +0000 (17:32 +0100)
src/libserver/spf.c

index a5f0d5b48b49981657996d4e5c3ae9e904aace9c..78250da5319839a53ad216dda3c088ab1d65aa47 100644 (file)
@@ -576,6 +576,10 @@ spf_process_txt_record (struct spf_record *rec, struct spf_resolved_element *res
                if (strncmp (elt->content.txt.data, "v=spf1", sizeof ("v=spf1") - 1)
                                == 0) {
                        selected = elt;
+                       rspamd_mempool_set_variable (rec->task->task_pool,
+                                       RSPAMD_MEMPOOL_SPF_RECORD,
+                                       rspamd_mempool_strdup (rec->task->task_pool,
+                                                       elt->content.txt.data), NULL);
                        break;
                }
        }