aboutsummaryrefslogtreecommitdiffstats
path: root/driver.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1997-01-22 23:21:46 +0000
committerEric S. Raymond <esr@thyrsus.com>1997-01-22 23:21:46 +0000
commit158e16e040750098c5ceb3b39063ded3fff5a096 (patch)
tree970b28072c0cde8e51fbf6f68d8e1def73d94155 /driver.c
parent267d78cd2d5eedbe4fc5ef40931d73c8927e6d8b (diff)
downloadfetchmail-158e16e040750098c5ceb3b39063ded3fff5a096.tar.gz
fetchmail-158e16e040750098c5ceb3b39063ded3fff5a096.tar.bz2
fetchmail-158e16e040750098c5ceb3b39063ded3fff5a096.zip
General ESMTP support seems pretty good now.
svn path=/trunk/; revision=805
Diffstat (limited to 'driver.c')
-rw-r--r--driver.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/driver.c b/driver.c
index b9b98cd7..88a54cbd 100644
--- a/driver.c
+++ b/driver.c
@@ -362,6 +362,10 @@ static FILE *smtp_open(struct query *ctl)
ctl->server.names->id,
&lead->server.esmtp_options) != SM_OK)
{
+ /*
+ * RFC 1869 warns that some listeners hang up on a failed EHLO,
+ * so it's safest not to assume the socket will still be good.
+ */
fclose(lead->smtp_sockfp);
lead->smtp_sockfp = (FILE *)NULL;
}