aboutsummaryrefslogtreecommitdiffstats
path: root/src/libserver/spf.h
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-12-22 14:30:08 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-12-22 14:30:08 +0000
commit0fb2347cce41a52c93405cf35257eafb3efb2565 (patch)
treeba7e83c917cdce10f3b04c44dbc86962766b99e9 /src/libserver/spf.h
parentd3bc4025a1c62ce4f11ceb3a3d175da4d7493c85 (diff)
downloadrspamd-0fb2347cce41a52c93405cf35257eafb3efb2565.tar.gz
rspamd-0fb2347cce41a52c93405cf35257eafb3efb2565.zip
Fix issues with multiple addresses in SPF records
Issue: #455 Reported by: @moisseev
Diffstat (limited to 'src/libserver/spf.h')
-rw-r--r--src/libserver/spf.h12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/libserver/spf.h b/src/libserver/spf.h
index 9aa439905..9e875b515 100644
--- a/src/libserver/spf.h
+++ b/src/libserver/spf.h
@@ -30,11 +30,12 @@ typedef enum spf_action_e {
#define RSPAMD_SPF_FLAG_IPV6 (1 << 0)
#define RSPAMD_SPF_FLAG_IPV4 (1 << 1)
-#define RSPAMD_SPF_FLAG_ANY (1 << 2)
-#define RSPAMD_SPF_FLAG_PARSED (1 << 3)
-#define RSPAMD_SPF_FLAG_VALID (1 << 4)
-#define RSPAMD_SPF_FLAG_REFRENCE (1 << 5)
-#define RSPAMD_SPF_FLAG_REDIRECT (1 << 6)
+#define RSPAMD_SPF_FLAG_PROCESSED (1 << 2)
+#define RSPAMD_SPF_FLAG_ANY (1 << 3)
+#define RSPAMD_SPF_FLAG_PARSED (1 << 4)
+#define RSPAMD_SPF_FLAG_VALID (1 << 5)
+#define RSPAMD_SPF_FLAG_REFRENCE (1 << 6)
+#define RSPAMD_SPF_FLAG_REDIRECT (1 << 7)
struct spf_addr {
guchar addr6[sizeof (struct in6_addr)];
@@ -49,6 +50,7 @@ struct spf_addr {
guint flags;
spf_mech_t mech;
gchar *spf_string;
+ struct spf_addr *prev, *next;
};
struct spf_resolved {