MFC r201444:

The size of credential messages is limited by CMGROUP_MAX rather than
  NGROUPS.
This commit is contained in:
brooks 2010-01-12 07:33:33 +00:00
parent d6d319f0ca
commit 86b77ddc73

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 ;