aboutsummaryrefslogtreecommitdiffstats
path: root/driver.c
diff options
context:
space:
mode:
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;
}