client: Fix typo in cr_pid usage

This commit is contained in:
Kenny Levinsen 2020-12-10 10:07:43 +01:00
parent 9b3bdcb12d
commit 3755eea668

View file

@ -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