mirror of
https://github.com/golang/go
synced 2024-11-20 10:14:43 -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)
|
||||
if !ok {
|
||||
c.sendAlert(alertProtocolVersion)
|
||||
return c.sendAlert(alertProtocolVersion)
|
||||
}
|
||||
c.vers = vers
|
||||
c.haveVers = true
|
||||
|
Loading…
Reference in New Issue
Block a user