]> Cypherpunks repositories - gostls13.git/commit
crypto/tls: fix NPN extension parsing.
authorAdam Langley <agl@golang.org>
Tue, 9 Oct 2012 17:25:47 +0000 (13:25 -0400)
committerAdam Langley <agl@golang.org>
Tue, 9 Oct 2012 17:25:47 +0000 (13:25 -0400)
commit7e90f7b4abac5fda50cbd1c41f14e8f63def0923
treec75378f4cf7bd147920d47274f3ef75e07eeddeb
parent49a5c28a183bbcdf4a9f89377391db1b9c4ed60f
crypto/tls: fix NPN extension parsing.

I typoed the code and tried to parse all the way to the end of the
message. Therefore it fails when NPN is not the last extension in the
ServerHello.

Fixes #4088.

R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/6637052
src/pkg/crypto/tls/handshake_messages.go
src/pkg/crypto/tls/handshake_messages_test.go