From 9d70283af976b6db4d0a5734d0aad1d58b8f45e7 Mon Sep 17 00:00:00 2001 From: Winni Neessen Date: Wed, 2 Oct 2024 13:09:55 +0200 Subject: [PATCH] Reset response step in AUTH LOGIN initialization The addition of `a.respStep = 0` resets the response step counter at the beginning of the AUTH LOGIN process. This ensures that the state starts correctly and avoids potential issues related to residual values from previous authentications. --- smtp/auth_login.go | 1 + 1 file changed, 1 insertion(+) diff --git a/smtp/auth_login.go b/smtp/auth_login.go index e25b3e6..715861c 100644 --- a/smtp/auth_login.go +++ b/smtp/auth_login.go @@ -57,6 +57,7 @@ func (a *loginAuth) Start(server *ServerInfo) (string, []byte, error) { if server.Name != a.host { return "", nil, errors.New("wrong host name") } + a.respStep = 0 return "LOGIN", nil, nil }