diff options
| author | database64128 <free122448@hotmail.com> | 2025-08-02 00:42:27 +0800 |
|---|---|---|
| committer | Sean Liao <sean@liao.dev> | 2025-08-27 01:05:25 -0700 |
| commit | 49a2f3ed871c044eb093b16c09202b7dcd875878 (patch) | |
| tree | 128a07c0a3527eace99bec1adf0e8cb6347ab643 /src/debug/elf | |
| parent | afc51ed007ad814fc11273f39055aeea71172557 (diff) | |
| download | go-49a2f3ed871c044eb093b16c09202b7dcd875878.tar.xz | |
net: allow zero value destination address in WriteMsgUDPAddrPort
The existing address validity checks already cover both connected and
non-connected sockets. Pass a nil sockaddr just like WriteMsgUDP, when
the address is zero value.
TestWriteToUDP is extended to cover the netip APIs.
Fixes #74841
Change-Id: I2708e7747e224958198fe7abb3fcd8d59bc5a88a
Reviewed-on: https://go-review.googlesource.com/c/go/+/692437
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
Reviewed-by: Sean Liao <sean@liao.dev>
Reviewed-by: Damien Neil <dneil@google.com>
Diffstat (limited to 'src/debug/elf')
0 files changed, 0 insertions, 0 deletions
