diff options
Diffstat (limited to 'libgo/go/net/ipsock.go')
-rw-r--r-- | libgo/go/net/ipsock.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libgo/go/net/ipsock.go b/libgo/go/net/ipsock.go index dd796bc920e..4ba6a55b96f 100644 --- a/libgo/go/net/ipsock.go +++ b/libgo/go/net/ipsock.go @@ -24,7 +24,7 @@ func kernelSupportsIPv6() bool { } fd, e := syscall.Socket(syscall.AF_INET6, syscall.SOCK_STREAM, syscall.IPPROTO_TCP) if fd >= 0 { - syscall.Close(fd) + closesocket(fd) } return e == 0 } |