fix duplicate diagnosis of aliasing/forwarding loop broken
authorEric Allman <eric@ucbvax.Berkeley.EDU>
Tue, 20 Jul 1993 12:03:54 +0000 (04:03 -0800)
committerEric Allman <eric@ucbvax.Berkeley.EDU>
Tue, 20 Jul 1993 12:03:54 +0000 (04:03 -0800)
SCCS-vsn: usr.sbin/sendmail/src/recipient.c 8.8

usr/src/usr.sbin/sendmail/src/recipient.c

index 0aa9a85..78780a4 100644 (file)
@@ -7,7 +7,7 @@
  */
 
 #ifndef lint
  */
 
 #ifndef lint
-static char sccsid[] = "@(#)recipient.c        8.7 (Berkeley) %G%";
+static char sccsid[] = "@(#)recipient.c        8.8 (Berkeley) %G%";
 #endif /* not lint */
 
 # include "sendmail.h"
 #endif /* not lint */
 
 # include "sendmail.h"
@@ -334,9 +334,9 @@ recipient(a, sendq, e)
                        }
                        else if (ret != 0)
                        {
                        }
                        else if (ret != 0)
                        {
+                               a->q_flags |= QBADADDR;
                                usrerr("550 Cannot open %s: %s",
                                        a->q_user, errstring(ret));
                                usrerr("550 Cannot open %s: %s",
                                        a->q_user, errstring(ret));
-                               a->q_flags |= QBADADDR;
                        }
                }
        }
                        }
                }
        }
@@ -477,7 +477,7 @@ recipient(a, sendq, e)
                q = a->q_next;
                while (q != NULL && bitset(QDONTSEND|QBADADDR, q->q_flags))
                        q = q->q_next;
                q = a->q_next;
                while (q != NULL && bitset(QDONTSEND|QBADADDR, q->q_flags))
                        q = q->q_next;
-               if (bitset(QDONTSEND|QBADADDR, a->q_flags) && q == NULL)
+               if (bitset(QDONTSEND, a->q_flags) && q == NULL)
                {
                        a->q_flags |= QBADADDR;
                        usrerr("554 aliasing/forwarding loop broken");
                {
                        a->q_flags |= QBADADDR;
                        usrerr("554 aliasing/forwarding loop broken");