summaryrefslogtreecommitdiffhomepage
path: root/pkg/tcpip/transport/icmp
diff options
context:
space:
mode:
authorgVisor bot <gvisor-bot@google.com>2019-08-15 23:40:35 +0000
committergVisor bot <gvisor-bot@google.com>2019-08-15 23:40:35 +0000
commitc02a2af82e1970731cd4f5f1894cc008a29e4c47 (patch)
treee593bd42c22dae90e96cad5415933fb927eabc31 /pkg/tcpip/transport/icmp
parentdc6a11caacaddfc79be4400f83037cb34cbec9a2 (diff)
parentef045b914bc8d9795f9184aed4b13351be70a3cf (diff)
Merge ef045b91 (automated)
Diffstat (limited to 'pkg/tcpip/transport/icmp')
-rw-r--r--pkg/tcpip/transport/icmp/endpoint_state.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/tcpip/transport/icmp/endpoint_state.go b/pkg/tcpip/transport/icmp/endpoint_state.go
index c5690174e..c587b96b6 100644
--- a/pkg/tcpip/transport/icmp/endpoint_state.go
+++ b/pkg/tcpip/transport/icmp/endpoint_state.go
@@ -78,7 +78,7 @@ func (e *endpoint) Resume(s *stack.Stack) {
if e.state == stateConnected {
e.route, err = e.stack.FindRoute(e.regNICID, e.bindAddr, e.id.RemoteAddress, e.netProto, false /* multicastLoop */)
if err != nil {
- panic(*err)
+ panic(err)
}
e.id.LocalAddress = e.route.LocalAddress
@@ -90,6 +90,6 @@ func (e *endpoint) Resume(s *stack.Stack) {
e.id, err = e.registerWithStack(e.regNICID, []tcpip.NetworkProtocolNumber{e.netProto}, e.id)
if err != nil {
- panic(*err)
+ panic(err)
}
}