summaryrefslogtreecommitdiff
path: root/nslcd_systemd/nslcd_systemd.go
diff options
context:
space:
mode:
Diffstat (limited to 'nslcd_systemd/nslcd_systemd.go')
-rw-r--r--nslcd_systemd/nslcd_systemd.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/nslcd_systemd/nslcd_systemd.go b/nslcd_systemd/nslcd_systemd.go
index 91177a7..c0024e2 100644
--- a/nslcd_systemd/nslcd_systemd.go
+++ b/nslcd_systemd/nslcd_systemd.go
@@ -189,11 +189,11 @@ func Main(backend Backend, limits nslcd_server.Limits, ctx context.Context) uint
if conn != nil {
wg.Add(1)
id++
- go func(id int) {
+ go func(conn *net.UnixConn, id int) {
defer sd_daemon.Recover()
defer wg.Done()
- handler(backend, limits, conn.(*net.UnixConn), id, ctx)
- }(id)
+ handler(backend, limits, conn, id, ctx)
+ }(conn.(*net.UnixConn), id)
}
}
}()