diff options
author | Unknwon <u@gogs.io> | 2017-03-01 21:33:58 -0500 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2017-03-01 21:33:58 -0500 |
commit | 600f748cb0a77370bb5533ed38c01e40fbcf11bb (patch) | |
tree | 926360afed004b146fd0b5b568163f694dd49c8f /vendor/golang.org/x/crypto/ssh/client_auth.go | |
parent | 038b107c3d6437f7ac4d7e22e574c583b546f132 (diff) |
vendor: update golang.org/x/crypto/ssh
Related to #4160
Diffstat (limited to 'vendor/golang.org/x/crypto/ssh/client_auth.go')
-rw-r--r-- | vendor/golang.org/x/crypto/ssh/client_auth.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/vendor/golang.org/x/crypto/ssh/client_auth.go b/vendor/golang.org/x/crypto/ssh/client_auth.go index 294af0d4..fd1ec5dd 100644 --- a/vendor/golang.org/x/crypto/ssh/client_auth.go +++ b/vendor/golang.org/x/crypto/ssh/client_auth.go @@ -30,8 +30,10 @@ func (c *connection) clientAuthenticate(config *ClientConfig) error { // then any untried methods suggested by the server. tried := make(map[string]bool) var lastMethods []string + + sessionID := c.transport.getSessionID() for auth := AuthMethod(new(noneAuth)); auth != nil; { - ok, methods, err := auth.auth(c.transport.getSessionID(), config.User, c.transport, config.Rand) + ok, methods, err := auth.auth(sessionID, config.User, c.transport, config.Rand) if err != nil { return err } |