diff --git a/src/pkg/net/ipsock.go b/src/pkg/net/ipsock.go index 9477420d66..dd796bc920 100644 --- a/src/pkg/net/ipsock.go +++ b/src/pkg/net/ipsock.go @@ -68,12 +68,12 @@ func internetSocket(net string, laddr, raddr sockaddr, socktype, proto int, mode var la, ra syscall.Sockaddr if laddr != nil { - if la, oserr = laddr.sockaddr(family); err != nil { + if la, oserr = laddr.sockaddr(family); oserr != nil { goto Error } } if raddr != nil { - if ra, oserr = raddr.sockaddr(family); err != nil { + if ra, oserr = raddr.sockaddr(family); oserr != nil { goto Error } }