]> Cypherpunks repositories - gostls13.git/commit
net: don't leave hostsPath unrestored on error in TestLookupStaticHost
authorJosh Bleecher Snyder <josharian@gmail.com>
Thu, 12 Dec 2013 06:12:06 +0000 (10:12 +0400)
committerBrad Fitzpatrick <bradfitz@golang.org>
Thu, 12 Dec 2013 06:12:06 +0000 (10:12 +0400)
commitcf51702bba18cf15e4f4aca1db6bf33bfa349d64
tree1b4db34d821b6d52692642b2d4211467e5909f71
parent2f43ce7fb0390f9d429cedf4f9f6701c1268411e
net: don't leave hostsPath unrestored on error in TestLookupStaticHost

If the return was reached, then hostsPath would not be properly restored
to its original value. See the (lengthy) discussion at
https://golang.org/cl/15960047/

I assume that this is not for Go 1.2; mailing now since I promised to do so.
I will plan to ping once Go 1.2 is out.

R=rsc, bradfitz
CC=golang-dev
https://golang.org/cl/16200043
src/pkg/net/hosts_test.go