diff options
author | gVisor bot <gvisor-bot@google.com> | 2020-07-23 19:56:53 +0000 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2020-07-23 19:56:53 +0000 |
commit | 0db3b8663c5e94284254ce60244197313f1e4fc2 (patch) | |
tree | dec6d00ddfd79e8add30869a0bf7d3c7f5c794ea /pkg/tcpip/transport | |
parent | 00d5db431685844b0d4492b24b003375381e14f3 (diff) | |
parent | 20b556e625354dd8330e30e4075ad06eedc6a2ce (diff) |
Merge release-20200622.1-196-g20b556e62 (automated)
Diffstat (limited to 'pkg/tcpip/transport')
-rw-r--r-- | pkg/tcpip/transport/raw/endpoint.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/tcpip/transport/raw/endpoint.go b/pkg/tcpip/transport/raw/endpoint.go index c2e9fd29f..aefe0e2b2 100644 --- a/pkg/tcpip/transport/raw/endpoint.go +++ b/pkg/tcpip/transport/raw/endpoint.go @@ -456,7 +456,7 @@ func (e *endpoint) Bind(addr tcpip.FullAddress) *tcpip.Error { defer e.mu.Unlock() // If a local address was specified, verify that it's valid. - if e.stack.CheckLocalAddress(addr.NIC, e.NetProto, addr.Addr) == 0 { + if len(addr.Addr) != 0 && e.stack.CheckLocalAddress(addr.NIC, e.NetProto, addr.Addr) == 0 { return tcpip.ErrBadLocalAddress } |