diff options
| author | Han-Wen Nienhuys <hanwen@google.com> | 2016-03-17 12:45:02 +0100 |
|---|---|---|
| committer | Adam Langley <agl@golang.org> | 2016-03-29 14:38:23 +0000 |
| commit | 9e7f5dc375abeb9619ea3c5c58502c428f457aa2 (patch) | |
| tree | b3625921342ecec776aeb3a9f984550059844924 /ssh/client_auth.go | |
| parent | c7e3b0ebdd409a0d024e3d71801427ab0e05fb2e (diff) | |
| download | go-x-crypto-9e7f5dc375abeb9619ea3c5c58502c428f457aa2.tar.xz | |
x/crypto/ssh: interpret disconnect message as error in the transport layer.
This ensures that higher level parts (e.g. the client authentication
loop) never have to deal with disconnect messages.
Fixes https://github.com/coreos/fleet/issues/565.
Change-Id: Ie164b6c4b0982c7ed9af6d3bf91697a78a911a20
Reviewed-on: https://go-review.googlesource.com/20801
Reviewed-by: Anton Khramov <anton@endocode.com>
Reviewed-by: Adam Langley <agl@golang.org>
Diffstat (limited to 'ssh/client_auth.go')
| -rw-r--r-- | ssh/client_auth.go | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/ssh/client_auth.go b/ssh/client_auth.go index e15be3e..6956ce4 100644 --- a/ssh/client_auth.go +++ b/ssh/client_auth.go @@ -321,8 +321,6 @@ func handleAuthResponse(c packetConn) (bool, []string, error) { return false, msg.Methods, nil case msgUserAuthSuccess: return true, nil, nil - case msgDisconnect: - return false, nil, io.EOF default: return false, nil, unexpectedMessageError(msgUserAuthSuccess, packet[0]) } |
