aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKenny Levinsen <kl@kl.wtf>2020-12-10 10:07:43 +0100
committerKenny Levinsen <kl@kl.wtf>2020-12-10 10:07:43 +0100
commit3755eea668cf7162ff861df9e8545ea5095792c1 (patch)
treebeb988ce0d9be777ab95d6c5148b2a7e5e9d5f46
parent9b3bdcb12d0dea1cc5b96eefbc083114556df565 (diff)
client: Fix typo in cr_pid usage
-rw-r--r--seatd/client.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/seatd/client.c b/seatd/client.c
index 162f4ba..a5a11ab 100644
--- a/seatd/client.c
+++ b/seatd/client.c
@@ -41,7 +41,7 @@ static int get_peer(int fd, pid_t *pid, uid_t *uid, gid_t *gid) {
return -1;
}
#if __FreeBSD_version >= 1300030
- pid = cred.cr_pid;
+ *pid = cred.cr_pid;
#else
*pid = -1;
#endif