summaryrefslogtreecommitdiffstats
path: root/src/libserver
diff options
context:
space:
mode:
Diffstat (limited to 'src/libserver')
-rw-r--r--src/libserver/spf.c1
-rw-r--r--src/libserver/spf.h1
2 files changed, 2 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);
diff --git a/src/libserver/spf.h b/src/libserver/spf.h
index db220e03a..473eff086 100644
--- a/src/libserver/spf.h
+++ b/src/libserver/spf.h
@@ -51,6 +51,7 @@ struct spf_addr {
struct spf_resolved {
gchar *domain;
+ guint ttl;
GArray *elts; /* Flat list of struct spf_addr */
ref_entry_t ref; /* Refcounting */
};