From 600f748cb0a77370bb5533ed38c01e40fbcf11bb Mon Sep 17 00:00:00 2001 From: Unknwon Date: Wed, 1 Mar 2017 21:33:58 -0500 Subject: vendor: update golang.org/x/crypto/ssh Related to #4160 --- vendor/golang.org/x/crypto/ssh/client_auth.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'vendor/golang.org/x/crypto/ssh/client_auth.go') 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 } -- cgit v1.2.3