]> Cypherpunks repositories - gostls13.git/commit
net: fix cgoResSearch
authordatabase64128 <free122448@hotmail.com>
Mon, 18 Aug 2025 08:55:40 +0000 (16:55 +0800)
committerGopher Robot <gobot@golang.org>
Mon, 25 Aug 2025 17:50:07 +0000 (10:50 -0700)
commitbbd5342a62baa2fa6b42d444b05717c2563d0764
treed294000c4b78c6eea1e59bc84ea256d92c6ebf1e
parented7f804775725149088a71108efd0b20ef9f206f
net: fix cgoResSearch

CL 457439 mistakenly redeclared size inside the for loop, causing
cgoResSearch to always fail and fall back to goLookupCNAME.

Change-Id: I3e142d34287388284a8998ac13761b1e0c2911a5
Reviewed-on: https://go-review.googlesource.com/c/go/+/696895
Reviewed-by: Damien Neil <dneil@google.com>
Auto-Submit: Damien Neil <dneil@google.com>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Cherry Mui <cherryyz@google.com>
Reviewed-by: Mateusz Poliwczak <mpoliwczak34@gmail.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
src/net/cgo_unix.go