From e8fcf322804b6078bdd763ef5406e6c631c7a3e0 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Fri, 20 Jul 2018 17:32:09 +0100 Subject: [PATCH] [Minor] Fix spf record saving --- src/libserver/spf.c | 4 ++++ 1 file changed, 4 insertions(+) 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; } } -- 2.39.5