Commit a0c3b960 authored by Adam Langley's avatar Adam Langley

crypto/tls: make protocol negotiation failure fatal

R=r, r2
CC=golang-dev
https://golang.org/cl/4178054
parent f14c29a3
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment