diff options
-rw-r--r-- | src/pkg/net/ipsock.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pkg/net/ipsock.go b/src/pkg/net/ipsock.go index fcbd5079f..3453aaab1 100644 --- a/src/pkg/net/ipsock.go +++ b/src/pkg/net/ipsock.go @@ -78,7 +78,7 @@ func internetSocket(net string, laddr, raddr sockaddr, proto int, mode string, t } } fd, oserr = socket(net, family, proto, 0, la, ra, toAddr) - if err != nil { + if oserr != nil { goto Error } return fd, nil |