From: Vsevolod Stakhov Date: Fri, 20 Jul 2018 16:32:09 +0000 (+0100) Subject: [Minor] Fix spf record saving X-Git-Tag: 1.7.9~76 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=e8fcf322804b6078bdd763ef5406e6c631c7a3e0;p=rspamd.git [Minor] Fix spf record saving --- diff --git a/src/libserver/spf.c b/src/libserver/spf.c index a5f0d5b48..78250da53 100644 --- a/src/libserver/spf.c +++ b/src/libserver/spf.c @@ -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; } }