aboutsummaryrefslogtreecommitdiffstats
path: root/driver.c
diff options
context:
space:
mode:
Diffstat (limited to 'driver.c')
-rw-r--r--driver.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/driver.c b/driver.c
index fe8a0d70..6c901df0 100644
--- a/driver.c
+++ b/driver.c
@@ -520,7 +520,7 @@ char *realname; /* real name of host */
ctt_offs = (bufp - headers);
#ifdef HAVE_RES_SEARCH
- else if (MULTIDROP(ctl) && !strncasecmp("Received:", bufp, 9))
+ else if (MULTIDROP(ctl) && !received_for && !strncasecmp("Received:", bufp, 9))
received_for = parse_received(ctl, bufp);
#endif /* HAVE_RES_SEARCH */
}
@@ -1465,11 +1465,14 @@ va_dcl
if (outlevel == O_VERBOSE)
{
- char *cp;
+ if (shroud)
+ {
+ char *cp;
- if (shroud && (cp = strstr(buf, shroud)))
- memset(cp, '*', strlen(shroud));
- buf[strlen(buf)-1] = '\0';
+ if ((cp = strstr(buf, shroud)))
+ memset(cp, '*', strlen(shroud));
+ buf[strlen(buf)-1] = '\0';
+ }
error(0, 0, "%s> %s", protocol->name, buf);
}
}