netstack: minor fix typo in "if err" handler

This commit is contained in:
Marek Majkowski 2019-12-31 16:49:30 +01:00
parent 1f384ac42b
commit 200cf245c4
2 changed files with 2 additions and 2 deletions

View File

@ -164,7 +164,7 @@ func main() {
// Create TCP endpoint.
var wq waiter.Queue
ep, e := s.NewEndpoint(tcp.ProtocolNumber, ipv4.ProtocolNumber, &wq)
if err != nil {
if e != nil {
log.Fatal(e)
}

View File

@ -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)
}