]> Cypherpunks repositories - gostls13.git/commit
crypto/tls: set Conn.ConnectionState.ServerName unconditionally
authorAtin M <amalaviy@akamai.com>
Fri, 6 May 2016 16:20:12 +0000 (12:20 -0400)
committerAdam Langley <agl@golang.org>
Wed, 17 Aug 2016 20:21:08 +0000 (20:21 +0000)
commitebcd17979326b44f445cdfe7640dc53cf14c19ca
tree08444ee0d75db7dec17208cc364d42698d505d98
parent659dd4f1d7ed4e040d32346fa18c4ae3311ed81a
crypto/tls: set Conn.ConnectionState.ServerName unconditionally

Moves the state.ServerName assignment to outside the if
statement that checks for handshakeComplete.

Fixes #15571

Change-Id: I6c4131ddb16389aed1c410a975f9aa3b52816965
Reviewed-on: https://go-review.googlesource.com/22862
Run-TryBot: Adam Langley <agl@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Adam Langley <agl@golang.org>
src/crypto/tls/conn.go
src/crypto/tls/handshake_server_test.go