diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-10-16 16:54:51 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-10-16 16:54:51 +0100 |
commit | 8e4f97d92483aed399621d58f25e718b1b07a077 (patch) | |
tree | 153341d3240b7c7ee4bfc22464b7f098784a9450 /src/libserver/spf.c | |
parent | 330cafa19e79f5c665db3ec123e673cf38e29d4f (diff) | |
download | rspamd-8e4f97d92483aed399621d58f25e718b1b07a077.tar.gz rspamd-8e4f97d92483aed399621d58f25e718b1b07a077.zip |
Fix setting the default mask for SPF.
Diffstat (limited to 'src/libserver/spf.c')
-rw-r--r-- | src/libserver/spf.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/libserver/spf.c b/src/libserver/spf.c index d9b9a730f..433f8f927 100644 --- a/src/libserver/spf.c +++ b/src/libserver/spf.c @@ -751,6 +751,11 @@ parse_spf_domain_mask (struct spf_record *rec, struct spf_addr *addr, host = hostbuf; } + if (cur_mask == 0) { + addr->m.dual.mask_v4 = 32; + addr->m.dual.mask_v6 = 64; + } + return host; } |