Skip to content

Commit 2245f5a

Browse files
committed
compat BUGFIX missing expected parameter
1 parent b8c1c74 commit 2245f5a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

compat/compat.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -447,7 +447,9 @@ unsock_get_uid(int sock, uid_t *uid)
447447
*uid = ucred.uid;
448448
}
449449
#elif defined (HAVE_GETPEEREID)
450-
r = getpeereid(sock, uid, NULL);
450+
gid_t gid;
451+
452+
r = getpeereid(sock, uid, &gid);
451453
#else
452454
(void)sock;
453455
(void)uid;

0 commit comments

Comments
 (0)