mirror of
https://github.com/decke/smtprelay.git
synced 2025-12-26 00:52:31 -07:00
smtp: ignore HELO error in QUIT
Merge from net/smtp/smtp.go Obtained from: 2ef8e41f9543478a51a0147a735e4415737de09f
This commit is contained in:
4
smtp.go
4
smtp.go
@@ -445,9 +445,7 @@ func (c *Client) Noop() error {
|
|||||||
|
|
||||||
// Quit sends the QUIT command and closes the connection to the server.
|
// Quit sends the QUIT command and closes the connection to the server.
|
||||||
func (c *Client) Quit() error {
|
func (c *Client) Quit() error {
|
||||||
if err := c.hello(); err != nil {
|
c.hello() // ignore error; we're quitting anyhow
|
||||||
return err
|
|
||||||
}
|
|
||||||
_, _, err := c.cmd(221, "QUIT")
|
_, _, err := c.cmd(221, "QUIT")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
|
|||||||
Reference in New Issue
Block a user