mirror of https://github.com/golang/go.git
Merge 16688ac2f8 into 49cdf0c42e
This commit is contained in:
commit
d847ff1b8d
|
|
@ -756,7 +756,7 @@ func (c *Conn) readRecordOrCCS(expectChangeCipherSpec bool) error {
|
|||
// 5, a server can send a ChangeCipherSpec before its ServerHello, when
|
||||
// c.vers is still unset. That's not useful though and suspicious if the
|
||||
// server then selects a lower protocol version, so don't allow that.
|
||||
if c.vers == VersionTLS13 {
|
||||
if c.vers == VersionTLS13 && !handshakeComplete {
|
||||
return c.retryReadRecord(expectChangeCipherSpec)
|
||||
}
|
||||
if !expectChangeCipherSpec {
|
||||
|
|
|
|||
Loading…
Reference in New Issue