summaryrefslogtreecommitdiff
path: root/libgo/go/net/sock_posix.go
diff options
context:
space:
mode:
Diffstat (limited to 'libgo/go/net/sock_posix.go')
-rw-r--r--libgo/go/net/sock_posix.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/libgo/go/net/sock_posix.go b/libgo/go/net/sock_posix.go
index fac3ac11ae2..7b1c380e297 100644
--- a/libgo/go/net/sock_posix.go
+++ b/libgo/go/net/sock_posix.go
@@ -54,7 +54,7 @@ func socket(ctx context.Context, net string, family, sotype, proto int, ipv6only
if laddr != nil && raddr == nil {
switch sotype {
case syscall.SOCK_STREAM, syscall.SOCK_SEQPACKET:
- if err := fd.listenStream(laddr, listenerBacklog, ctrlFn); err != nil {
+ if err := fd.listenStream(laddr, listenerBacklog(), ctrlFn); err != nil {
fd.Close()
return nil, err
}