From: Vsevolod Stakhov Date: Fri, 16 Oct 2015 15:54:51 +0000 (+0100) Subject: Fix setting the default mask for SPF. X-Git-Tag: 1.0.7~76 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=8e4f97d92483aed399621d58f25e718b1b07a077;p=rspamd.git Fix setting the default mask for SPF. --- 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; }