summaryrefslogtreecommitdiff
path: root/libgo/go/net/file_unix.go
diff options
context:
space:
mode:
Diffstat (limited to 'libgo/go/net/file_unix.go')
-rw-r--r--libgo/go/net/file_unix.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/libgo/go/net/file_unix.go b/libgo/go/net/file_unix.go
index 46ea8e25d84..25caafb9fa8 100644
--- a/libgo/go/net/file_unix.go
+++ b/libgo/go/net/file_unix.go
@@ -93,7 +93,7 @@ func fileListener(f *os.File) (Listener, error) {
}
switch laddr := fd.laddr.(type) {
case *TCPAddr:
- return &TCPListener{fd}, nil
+ return &TCPListener{fd: fd}, nil
case *UnixAddr:
return &UnixListener{fd: fd, path: laddr.Name, unlink: false}, nil
}