From 085052b96ada8723572a38c3470926762bade208 Mon Sep 17 00:00:00 2001 From: Bernhard Froehlich Date: Wed, 4 Jun 2025 18:08:38 +0000 Subject: [PATCH] smtp: ignore HELO error in QUIT Merge from net/smtp/smtp.go Obtained from: 2ef8e41f9543478a51a0147a735e4415737de09f --- smtp.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/smtp.go b/smtp.go index 5ab3240..628e124 100644 --- a/smtp.go +++ b/smtp.go @@ -445,9 +445,7 @@ func (c *Client) Noop() error { // Quit sends the QUIT command and closes the connection to the server. func (c *Client) Quit() error { - if err := c.hello(); err != nil { - return err - } + c.hello() // ignore error; we're quitting anyhow _, _, err := c.cmd(221, "QUIT") if err != nil { return err