diff --git a/internal/auth/sasl.go b/internal/auth/sasl.go index 5968c3c0..21a3d897 100644 --- a/internal/auth/sasl.go +++ b/internal/auth/sasl.go @@ -166,7 +166,7 @@ func (s *SASLAuth) CreateSASL(mech string, remoteAddr net.Addr, successCb func(i return err } - err := s.AuthPlain(username, password) + err = s.AuthPlain(username, password) if err != nil { s.Log.Error("authentication failed", err, "username", username, "src_ip", remoteAddr) return ErrInvalidAuthCred