From e5401c14b6fc36b24f7c4411cb447722faed8389 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Thu, 30 Apr 1998 22:35:49 +0000 Subject: Wautier's fix. svn path=/trunk/; revision=1756 --- driver.c | 29 +++++++++++++++-------------- 1 file changed, 15 insertions(+), 14 deletions(-) (limited to 'driver.c') diff --git a/driver.c b/driver.c index af0e61c8..fe8bec8a 100644 --- a/driver.c +++ b/driver.c @@ -326,25 +326,26 @@ struct idlist **xmit_names; /* list of recipient names parsed out */ break; } } - /* if we matched a local domain, idp != NULL */ - if (idp) continue; - /* - * Check to see if the right-hand part is an alias - * or MX equivalent of the mailserver. If it's - * not, skip this name. If it is, we'll keep - * going and try to find a mapping to a client name. - */ - if (!is_host_alias(atsign+1, ctl)) + /* if we matched a local domain, idp != NULL */ + if (!idp) { - save_str(xmit_names, cp, XMIT_REJECT); - reject_count++; - continue; + /* + * Check to see if the right-hand part is an alias + * or MX equivalent of the mailserver. If it's + * not, skip this name. If it is, we'll keep + * going and try to find a mapping to a client name. + */ + if (!is_host_alias(atsign+1, ctl)) + { + save_str(xmit_names, cp, XMIT_REJECT); + reject_count++; + continue; + } } atsign[0] = '\0'; + map_name(cp, ctl, xmit_names); } - - map_name(cp, ctl, xmit_names); } } } -- cgit v1.2.3