From f9b111e07d568304c3f5e725e96107e47fb93d9c Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Thu, 30 Jan 1997 21:21:52 +0000 Subject: Don't grab a received_for twice. svn path=/trunk/; revision=845 --- driver.c | 13 ++++++++----- 1 file 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); } } -- cgit v1.2.3