summaryrefslogtreecommitdiffhomepage
path: root/pkg/tcpip/sample/tun_tcp_echo
diff options
context:
space:
mode:
authorMarek Majkowski <marek@cloudflare.com>2019-12-31 16:49:30 +0100
committerMarek Majkowski <marek@cloudflare.com>2019-12-31 16:49:30 +0100
commit200cf245c4ed43d8e2a37484cdbc36f5fbfa1ac9 (patch)
treecbcaa55d0ec573c061a3380d74d2d971e3e8fb4c /pkg/tcpip/sample/tun_tcp_echo
parent1f384ac42b9ee8b52000dc2bff79d975853519ed (diff)
netstack: minor fix typo in "if err" handler
Diffstat (limited to 'pkg/tcpip/sample/tun_tcp_echo')
-rw-r--r--pkg/tcpip/sample/tun_tcp_echo/main.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/tcpip/sample/tun_tcp_echo/main.go b/pkg/tcpip/sample/tun_tcp_echo/main.go
index bca73cbb1..9e37cab18 100644
--- a/pkg/tcpip/sample/tun_tcp_echo/main.go
+++ b/pkg/tcpip/sample/tun_tcp_echo/main.go
@@ -168,7 +168,7 @@ func main() {
// Create TCP endpoint, bind it, then start listening.
var wq waiter.Queue
ep, e := s.NewEndpoint(tcp.ProtocolNumber, proto, &wq)
- if err != nil {
+ if e != nil {
log.Fatal(e)
}