ports/mail/fetchmail/files/patch-CVE-2007-4565
Simon Barner 3017d8ada2 - Fix for CVE-2007-4565 [1]
- Manually include bsd.python.mk if WITH_X11 is set (after bsd.port.pre.mk) [2]

Security:	http://www.vuxml.org/freebsd/45500f74-5947-11dc-87c1-000e2e5785ad.html
Security:	http://fetchmail.berlios.de/fetchmail-SA-2007-02.txt
Submitted by:	Matthias Andree <matthias.andree@gmx.de> [1]
PR:		ports/116011 [1]
Submitted by:	Jacula Modyun <jacula@gmail.com> [2]
PR:		ports/115714 [2]
2007-09-03 19:22:28 +00:00

11 lines
414 B
Text

--- sink.c (revision 5118)
+++ sink.c (revision 5119)
@@ -262,7 +262,7 @@
const char *md1 = "MAILER-DAEMON", *md2 = "MAILER-DAEMON@";
/* don't bounce in reply to undeliverable bounces */
- if (!msg->return_path[0] ||
+ if (!msg || !msg->return_path[0] ||
strcmp(msg->return_path, "<>") == 0 ||
strcasecmp(msg->return_path, md1) == 0 ||
strncasecmp(msg->return_path, md2, strlen(md2)) == 0)