diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-07-20 17:32:09 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-07-20 17:32:09 +0100 |
commit | e8fcf322804b6078bdd763ef5406e6c631c7a3e0 (patch) | |
tree | 1a9f09d78fcb26f9142b0eca0b7755f5f644ec15 /src | |
parent | 8e1063f4df95e96f99d42915ee31319bd3661330 (diff) | |
download | rspamd-e8fcf322804b6078bdd763ef5406e6c631c7a3e0.tar.gz rspamd-e8fcf322804b6078bdd763ef5406e6c631c7a3e0.zip |
[Minor] Fix spf record saving
Diffstat (limited to 'src')
-rw-r--r-- | src/libserver/spf.c | 4 |
1 files changed, 4 insertions, 0 deletions
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; } } |