From 028998f16c15f49597731619bd78b0bbc00e3999 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Wed, 28 May 1997 14:09:31 +0000 Subject: Fix error response on 571. svn path=/trunk/; revision=1035 --- driver.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'driver.c') 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) -- cgit v1.2.3