The size of credential messages is limited by CMGROUP_MAX rather than

NGROUPS.

MFC after:	1 week
This commit is contained in:
Brooks Davis 2010-01-03 20:45:49 +00:00
parent 9efde58392
commit 2f70892f19
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=201444

View File

@ -149,7 +149,7 @@ update_client_creds(int s, kcm_client *peer)
struct sockcred *sc;
memset(&msg, 0, sizeof(msg));
crmsgsize = CMSG_SPACE(SOCKCREDSIZE(NGROUPS));
crmsgsize = CMSG_SPACE(SOCKCREDSIZE(CMGROUP_MAX));
if (crmsgsize == 0)
return 1 ;