[PATCH] [release-branch.go1.15] net: don't rely on system hosts in TestCVE202133195
authorRoland Shoemaker <roland@golang.org>
Wed, 2 Jun 2021 16:20:22 +0000 (09:20 -0700)
committerShengjing Zhu <zhsj@debian.org>
Tue, 13 Jul 2021 05:55:42 +0000 (06:55 +0100)
commit02ab149a7827c7fdb94cc8ef6489ac9e6f952c90
tree57928b4fd62452f7855bceb15853fc9831457142
parent6da0956070961c903ce04ef96601a9c5b3fb56b4
[PATCH] [release-branch.go1.15] net: don't rely on system hosts in TestCVE202133195

Also don't unnecessarily deref the error return.

Updates #46504
Fixes #46531

Change-Id: I22d14ac76776f8988fa0774bdcb5fcd801ce0185
Reviewed-on: https://go-review.googlesource.com/c/go/+/324190
Trust: David Chase <drchase@google.com>
Trust: Damien Neil <dneil@google.com>
Run-TryBot: David Chase <drchase@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Damien Neil <dneil@google.com>
(cherry picked from commit dd7ba3ba2c860c40be6d70b63d4a678449cae80f)
Reviewed-on: https://go-review.googlesource.com/c/go/+/324333
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Gbp-Pq: Name 0010-CVE-2021-33195-2.patch
src/net/dnsclient_unix_test.go