summaryrefslogtreecommitdiffstats
path: root/contrib/sendmail/src/parseaddr.c
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/sendmail/src/parseaddr.c')
-rw-r--r--contrib/sendmail/src/parseaddr.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/contrib/sendmail/src/parseaddr.c b/contrib/sendmail/src/parseaddr.c
index 930f61d..682a372 100644
--- a/contrib/sendmail/src/parseaddr.c
+++ b/contrib/sendmail/src/parseaddr.c
@@ -13,7 +13,7 @@
#include <sendmail.h>
-SM_RCSID("@(#)$Id: parseaddr.c,v 8.405 2012/02/27 22:49:08 ca Exp $")
+SM_RCSID("@(#)$Id: parseaddr.c,v 8.406 2013/04/17 16:53:01 ca Exp $")
#include <sm/sendmail.h>
#include "map.h"
@@ -2350,6 +2350,14 @@ sameaddr(a, b)
if (a->q_mailer != b->q_mailer)
return false;
+ /*
+ ** Addresses resolving to error mailer
+ ** should not be considered identical
+ */
+
+ if (a->q_mailer == &errormailer)
+ return false;
+
/* if the user isn't the same, we can drop out */
if (strcmp(a->q_user, b->q_user) != 0)
return false;
OpenPOWER on IntegriCloud