summaryrefslogtreecommitdiffstats
path: root/src/libserver/spf.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-03-18 17:21:33 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-03-18 17:21:33 +0000
commitf7b2b8e8bf205da930c1aa14704428600e3453ba (patch)
treea4f8c0e86ecbe5f202cf0025b6dfec673f498991 /src/libserver/spf.c
parent020d5565adc3653ba4b674bb4c72dea6442a32c3 (diff)
downloadrspamd-f7b2b8e8bf205da930c1aa14704428600e3453ba.tar.gz
rspamd-f7b2b8e8bf205da930c1aa14704428600e3453ba.zip
Fix spf plugin.
Diffstat (limited to 'src/libserver/spf.c')
-rw-r--r--src/libserver/spf.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libserver/spf.c b/src/libserver/spf.c
index e9c0ebc71..eae35d352 100644
--- a/src/libserver/spf.c
+++ b/src/libserver/spf.c
@@ -301,6 +301,7 @@ rspamd_spf_record_flatten (struct spf_record *rec)
res->elts = g_array_sized_new (FALSE, FALSE, sizeof (struct spf_addr),
rec->resolved->len);
res->domain = g_strdup (rec->sender_domain);
+ res->ttl = rec->ttl;
REF_INIT_RETAIN (res, rspamd_flatten_record_dtor);
top = &g_array_index (rec->resolved, struct spf_resolved_element, 0);