mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00: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
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue