diff options
Diffstat (limited to 'src/pkg/net/iprawsock_posix.go')
-rw-r--r-- | src/pkg/net/iprawsock_posix.go | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/pkg/net/iprawsock_posix.go b/src/pkg/net/iprawsock_posix.go index 6bbe67c3d..9fc7ecdb9 100644 --- a/src/pkg/net/iprawsock_posix.go +++ b/src/pkg/net/iprawsock_posix.go @@ -83,9 +83,7 @@ func (c *IPConn) Close() error { if !c.ok() { return syscall.EINVAL } - err := c.fd.Close() - c.fd = nil - return err + return c.fd.Close() } // LocalAddr returns the local network address. |