summaryrefslogtreecommitdiff
path: root/src/nslcd_systemd/nslcd_systemd.go
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@sbcglobal.net>2015-09-03 13:53:32 -0600
committerLuke Shumaker <lukeshu@sbcglobal.net>2015-09-03 13:53:32 -0600
commitb18eb34f9902d206de83f6824be4d90f0bc86950 (patch)
tree90c0b0ca4effc294268be95771ec26e355f44d9f /src/nslcd_systemd/nslcd_systemd.go
parent70623707fd76465c7d03fced48bfa14454ef9e09 (diff)
fix the nslcd_proto.Ucred definition
Diffstat (limited to 'src/nslcd_systemd/nslcd_systemd.go')
-rw-r--r--src/nslcd_systemd/nslcd_systemd.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nslcd_systemd/nslcd_systemd.go b/src/nslcd_systemd/nslcd_systemd.go
index fec60c3..542afd2 100644
--- a/src/nslcd_systemd/nslcd_systemd.go
+++ b/src/nslcd_systemd/nslcd_systemd.go
@@ -42,7 +42,7 @@ func getpeercred(conn *net.UnixConn) (cred nslcd_proto.Ucred, err error) {
}
defer file.Close()
_cred, err := syscall.GetsockoptUcred(int(file.Fd()), syscall.SOL_SOCKET, syscall.SO_PEERCRED)
- cred = nslcd_proto.Ucred{*_cred}
+ cred = nslcd_proto.Ucred(*_cred)
return
}