summaryrefslogtreecommitdiff
path: root/vendor/golang.org/x/crypto/ssh/client_auth.go
diff options
context:
space:
mode:
authorLibravatar dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>2024-07-08 07:33:11 +0000
committerLibravatar GitHub <noreply@github.com>2024-07-08 07:33:11 +0000
commita81455e81c02d5c69b723b52c775a247313c82a2 (patch)
tree942e036c28e3f21edf43b2f8c467eeacc8bf6795 /vendor/golang.org/x/crypto/ssh/client_auth.go
parent[chore] upstep activity to v1.7.0-gts (#3074) (diff)
downloadgotosocial-a81455e81c02d5c69b723b52c775a247313c82a2.tar.xz
[chore]: Bump golang.org/x/crypto from 0.24.0 to 0.25.0 (#3080)
Diffstat (limited to 'vendor/golang.org/x/crypto/ssh/client_auth.go')
-rw-r--r--vendor/golang.org/x/crypto/ssh/client_auth.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/vendor/golang.org/x/crypto/ssh/client_auth.go b/vendor/golang.org/x/crypto/ssh/client_auth.go
index 9486c5986..b93961010 100644
--- a/vendor/golang.org/x/crypto/ssh/client_auth.go
+++ b/vendor/golang.org/x/crypto/ssh/client_auth.go
@@ -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