commit | 91902e332b9d47760598861512d2ae148f94ca58 | [log] [tgz] |
---|---|---|
author | Adam Langley <agl@golang.org> | Mon Jan 16 16:40:45 2017 -0800 |
committer | Adam Langley <agl@golang.org> | Tue Jan 17 00:48:27 2017 +0000 |
tree | 0ec040c7202c59e87bab7f8034116d8867cf211f | |
parent | 13d9f6188e639cb843a0568d05540a4cec71cc14 [diff] |
ssh/terminal: consume data before checking for an error. According to the io.Reader docs, Alex had it right the first time. (See discussion on https://golang.org/cl/25355.) Change-Id: Ib6fb9dfb99009e034263574e82d7e9d4828df38f Reviewed-on: https://go-review.googlesource.com/35242 TryBot-Result: Gobot Gobot <gobot@golang.org> Run-TryBot: Adam Langley <agl@golang.org> Reviewed-by: Alex Brainman <alex.brainman@gmail.com> Reviewed-by: Adam Langley <agl@golang.org>