Files
crypto/ssh
Han-Wen Nienhuys 77014cf7f9 ssh: prevent double kex at connection start, 2nd try
The previous attempt would fail in the following scenario:

* select picks "first" kex from requestKex

* read loop receives a remote kex, posts on requestKex (which is now
  empty) [*] for sending out a response, and sends pendingKex on startKex.

* select picks pendingKex from startKex, and proceeds to run the key
  exchange.

* the posting on requestKex in [*] now triggers a second key exchange.

Fixes #18861. 

Change-Id: I443e82f1d04c7f17d1485fdb87072b9feec26aa8
Reviewed-on: https://go-review.googlesource.com/36055
Run-TryBot: Han-Wen Nienhuys <hanwen@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Han-Wen Nienhuys <hanwen@google.com>
2017-02-06 10:12:19 +00:00
..
2016-07-06 16:40:51 +00:00
2014-04-09 13:57:52 -07:00
2014-04-09 13:57:52 -07:00
2016-07-06 16:40:51 +00:00
2017-01-16 13:08:31 +00:00
2014-04-09 13:57:52 -07:00
2017-01-30 09:33:53 +00:00
2015-05-14 18:39:32 +00:00
2014-04-09 13:57:52 -07:00
2016-07-06 16:40:51 +00:00