]> source.dussan.org Git - rspamd.git/commitdiff
Fix setting the default mask for SPF.
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 16 Oct 2015 15:54:51 +0000 (16:54 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 16 Oct 2015 15:54:51 +0000 (16:54 +0100)
src/libserver/spf.c

index d9b9a730f4b98be9ebe4d858b95b1348d246983f..433f8f927ba3ac9f4aa3a4da9e4e420e6e9b3d13 100644 (file)
@@ -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;
 }