commit | 83f1503f771a82af8a31f358eb825e9efb5dae6c | [log] [tgz] |
---|---|---|
author | Eric Garrido <ekg@google.com> | Fri Aug 07 17:38:44 2015 -0400 |
committer | Dave Cheney <dave@cheney.net> | Sat Aug 08 08:51:02 2015 +0000 |
tree | 39be99fba8e6a8ceff10c1c3c0da6e7d8eb9a141 | |
parent | 2f3083f6163ef51179ad42ed523a18c9a1141467 [diff] |
crypto/ssh: Handle error in dial to avoid a goroutine leak If the channel open request failed, a nil channel would be provided to DiscardRequests, which would never return. We return the error early to avoid this goroutine leak. Change-Id: I4c0e0a7698f7623c042f2a04941b8c50e8031d33 Reviewed-on: https://go-review.googlesource.com/13390 Reviewed-by: Dave Cheney <dave@cheney.net>