diff options
Diffstat (limited to 'pkgs/applications/misc/fetchmail/security-fix.patch')
-rw-r--r-- | pkgs/applications/misc/fetchmail/security-fix.patch | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/pkgs/applications/misc/fetchmail/security-fix.patch b/pkgs/applications/misc/fetchmail/security-fix.patch new file mode 100644 index 0000000000000..4d48c7aa05563 --- /dev/null +++ b/pkgs/applications/misc/fetchmail/security-fix.patch @@ -0,0 +1,11 @@ +--- old/sink.c (revision 5118) ++++ new/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) |