diff options
author | mnag <mnag@FreeBSD.org> | 2008-02-11 22:49:20 +0800 |
---|---|---|
committer | mnag <mnag@FreeBSD.org> | 2008-02-11 22:49:20 +0800 |
commit | d4aee958c348c2ef7cf79bdbabfb95e6ce83ef84 (patch) | |
tree | a4d2890fadb4a21e25763ef8f8099280616bed3f /mail | |
parent | 9707d8897569053e2d84f5ddba9467975b2decc0 (diff) | |
download | freebsd-ports-gnome-d4aee958c348c2ef7cf79bdbabfb95e6ce83ef84.tar.gz freebsd-ports-gnome-d4aee958c348c2ef7cf79bdbabfb95e6ce83ef84.tar.zst freebsd-ports-gnome-d4aee958c348c2ef7cf79bdbabfb95e6ce83ef84.zip |
- Add patch to respect RFC 4408. Section 10.1 say that maximun DNS checks are 10 for every A, MX or PTR records.
- Bump PORTREVISION
PR: 118859
Submitted by: dawnshade <h-k___mail.ru> [partial]
Diffstat (limited to 'mail')
-rw-r--r-- | mail/libspf2/Makefile | 2 | ||||
-rw-r--r-- | mail/libspf2/files/patch-RFC4408-DOS | 49 |
2 files changed, 50 insertions, 1 deletions
diff --git a/mail/libspf2/Makefile b/mail/libspf2/Makefile index 8e2c5eefe68d..91f24d2c2697 100644 --- a/mail/libspf2/Makefile +++ b/mail/libspf2/Makefile @@ -7,7 +7,7 @@ PORTNAME= libspf2 PORTVERSION= 1.2.5 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= mail MASTER_SITES= http://www.libspf2.org/%SUBDIR%/ MASTER_SITE_SUBDIR= spf diff --git a/mail/libspf2/files/patch-RFC4408-DOS b/mail/libspf2/files/patch-RFC4408-DOS new file mode 100644 index 000000000000..1da468387473 --- /dev/null +++ b/mail/libspf2/files/patch-RFC4408-DOS @@ -0,0 +1,49 @@ +--- src/include/spf.h.orig 2008-02-10 11:30:04.000000000 -0200 ++++ src/include/spf.h 2008-02-10 11:30:20.000000000 -0200 +@@ -52,8 +52,8 @@ + + /* FYI only -- defaults can't be changed without recompiling the library */ + #define SPF_DEFAULT_MAX_DNS_MECH 10 /* DoS limit on SPF mechanisms */ +-#define SPF_DEFAULT_MAX_DNS_PTR 5 /* DoS limit on PTR records */ +-#define SPF_DEFAULT_MAX_DNS_MX 5 /* DoS limit on MX records */ ++#define SPF_DEFAULT_MAX_DNS_PTR 10 /* DoS limit on PTR records */ ++#define SPF_DEFAULT_MAX_DNS_MX 10 /* DoS limit on MX records */ + #define SPF_DEFAULT_SANITIZE 1 + #define SPF_DEFAULT_WHITELIST "include:spf.trusted-forwarder.org" + #define SPF_EXP_MOD_NAME "exp-text" +--- src/include/spf_internal.h.orig 2008-02-10 11:30:28.000000000 -0200 ++++ src/include/spf_internal.h 2008-02-10 11:31:26.000000000 -0200 +@@ -57,13 +57,13 @@ + /* It is a bad idea to change this for the same reasons as mentioned + * above for SPF_MAX_DNS_MECH + */ +-#define SPF_MAX_DNS_PTR 5 ++#define SPF_MAX_DNS_PTR 10 + #endif + #ifndef SPF_MAX_DNS_MX + /* It is a bad idea to change this for the same reasons as mentioned + * above for SPF_MAX_DNS_MECH + */ +-#define SPF_MAX_DNS_MX 5 ++#define SPF_MAX_DNS_MX 10 + #endif + + #if 1 +--- src/include/spf_server.h.orig 2008-02-10 11:31:38.000000000 -0200 ++++ src/include/spf_server.h 2008-02-10 11:31:55.000000000 -0200 +@@ -43,13 +43,13 @@ + /* It is a bad idea to change this for the same reasons as mentioned + * above for SPF_MAX_DNS_MECH + */ +-#define SPF_MAX_DNS_PTR 5 ++#define SPF_MAX_DNS_PTR 10 + #endif + #ifndef SPF_MAX_DNS_MX + /* It is a bad idea to change this for the same reasons as mentioned + * above for SPF_MAX_DNS_MECH + */ +-#define SPF_MAX_DNS_MX 5 ++#define SPF_MAX_DNS_MX 10 + #endif + + struct SPF_server_struct { |