diff options
author | gVisor bot <gvisor-bot@google.com> | 2020-06-05 20:45:38 +0000 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2020-06-05 20:45:38 +0000 |
commit | c87863c64b37914f145c9e84da8699f391995110 (patch) | |
tree | 3ed244c41928d4e85b186588c00dfbaf170c617a /pkg/tcpip | |
parent | 2fa1b08cc1e3a2e3b545ac3739cea41803103b05 (diff) | |
parent | 526df4f52a07a02687dd43ceb752621a41883f95 (diff) |
Merge release-20200522.0-81-g526df4f5 (automated)
Diffstat (limited to 'pkg/tcpip')
-rw-r--r-- | pkg/tcpip/transport/icmp/endpoint.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/pkg/tcpip/transport/icmp/endpoint.go b/pkg/tcpip/transport/icmp/endpoint.go index 3bc72bc19..57e0a069b 100644 --- a/pkg/tcpip/transport/icmp/endpoint.go +++ b/pkg/tcpip/transport/icmp/endpoint.go @@ -506,6 +506,7 @@ func (e *endpoint) Connect(addr tcpip.FullAddress) *tcpip.Error { nicID := addr.NIC localPort := uint16(0) switch e.state { + case stateInitial: case stateBound, stateConnected: localPort = e.ID.LocalPort if e.BindNICID == 0 { |