summaryrefslogtreecommitdiff
path: root/mail/fetchmail/patches/patch-aa
blob: 4836906bd5e8783c1928fcc13634925dd3cfce95 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
$NetBSD: patch-aa,v 1.6 2007/09/23 12:48:46 tron Exp $

--- sink.c.orig	2007-03-29 23:45:17.000000000 +0100
+++ sink.c	2007-09-23 13:42:40.000000000 +0100
@@ -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)