[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>
Sat, 5 Jun 2021 11:36:34 +0000 (12:36 +0100)
commit29f17db456e9811aa6fc16cc84d496d6ccd28b92
treebbcc862072c8b013d2e24888a882d1237565a555
parent0a3998d0507e03a31ed48852d90ad1e00015e1e8
[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