netstack: minor fix typo in "if err" handler
This commit is contained in:
parent
1f384ac42b
commit
200cf245c4
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue