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.
This commit is contained in:
Winni Neessen 2024-10-02 13:09:55 +02:00
parent 93752280aa
commit 9d70283af9
Signed by: wneessen
GPG key ID: 385AC9889632126E

View file

@ -57,6 +57,7 @@ func (a *loginAuth) Start(server *ServerInfo) (string, []byte, error) {
if server.Name != a.host { if server.Name != a.host {
return "", nil, errors.New("wrong host name") return "", nil, errors.New("wrong host name")
} }
a.respStep = 0
return "LOGIN", nil, nil return "LOGIN", nil, nil
} }