mirror of
https://github.com/golang/go
synced 2024-11-20 10:44:41 -07:00
crypto/tls: make protocol negotiation failure fatal
R=r, r2 CC=golang-dev https://golang.org/cl/4178054
This commit is contained in:
parent
f14c29a311
commit
a0c3b96065
@ -57,7 +57,7 @@ func (c *Conn) clientHandshake() os.Error {
|
|||||||
|
|
||||||
vers, ok := mutualVersion(serverHello.vers)
|
vers, ok := mutualVersion(serverHello.vers)
|
||||||
if !ok {
|
if !ok {
|
||||||
c.sendAlert(alertProtocolVersion)
|
return c.sendAlert(alertProtocolVersion)
|
||||||
}
|
}
|
||||||
c.vers = vers
|
c.vers = vers
|
||||||
c.haveVers = true
|
c.haveVers = true
|
||||||
|
Loading…
Reference in New Issue
Block a user