aboutsummaryrefslogtreecommitdiffstats
path: root/driver.c
diff options
context:
space:
mode:
Diffstat (limited to 'driver.c')
-rw-r--r--driver.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/driver.c b/driver.c
index 62cd604a..b469e4e5 100644
--- a/driver.c
+++ b/driver.c
@@ -433,7 +433,7 @@ static RETSIGTYPE (*sigchld)();
static int sizeticker;
static int readheaders(sock, len, ctl, realname)
-/* read message content and ship to SMTP or MDA */
+/* read message headers and ship to SMTP or MDA */
int sock; /* to which the server is connected */
long len; /* length of message */
struct query *ctl; /* query control record */
@@ -808,7 +808,7 @@ char *realname; /* real name of host */
{
int smtperr = atoi(smtp_response);
- if (smtperr >= 400)
+ if (smtperr >= 400 && smtperr != 571)
error(0, -1, "SMTP error: %s", smtp_response);
/*
@@ -1033,9 +1033,9 @@ static int readbody(sock, ctl, forward, len, delimited)
/* read and dispose of a message body presented on sock */
struct query *ctl; /* query control record */
int sock; /* to which the server is connected */
-int len; /* length of message;
-int delimited; /* does the protocol use a message delimiter? */
+int len; /* length of message */
int forward; /* TRUE to forward */
+int delimited; /* does the protocol use a message delimiter? */
{
int linelen;
char buf[MSGBUFSIZE+1], *cp;
@@ -1141,7 +1141,7 @@ int forward; /* TRUE to forward */
return(PS_IOERR);
}
}
- else if (ctl->smtp_socket != -1)
+ else if (forward)
{
/* write message terminator */
if (SMTP_eom(ctl->smtp_socket) != SM_OK)