[chore]: Bump golang.org/x/crypto from 0.24.0 to 0.25.0 (#3080)

This commit is contained in:
dependabot[bot]
2024-07-08 07:33:11 +00:00
committed by GitHub
parent 1a66ea8998
commit a81455e81c
32 changed files with 91 additions and 1420 deletions

View File

@ -71,6 +71,10 @@ func (c *connection) clientAuthenticate(config *ClientConfig) error {
for auth := AuthMethod(new(noneAuth)); auth != nil; {
ok, methods, err := auth.auth(sessionID, config.User, c.transport, config.Rand, extensions)
if err != nil {
// On disconnect, return error immediately
if _, ok := err.(*disconnectMsg); ok {
return err
}
// We return the error later if there is no other method left to
// try.
ok = authFailure