From owner-svn-src-all@FreeBSD.ORG Sun Jan 3 20:45:50 2010 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 32DA610656C1; Sun, 3 Jan 2010 20:45:50 +0000 (UTC) (envelope-from brooks@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 223FF8FC16; Sun, 3 Jan 2010 20:45:50 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id o03KjoFO046344; Sun, 3 Jan 2010 20:45:50 GMT (envelope-from brooks@svn.freebsd.org) Received: (from brooks@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id o03KjoUa046342; Sun, 3 Jan 2010 20:45:50 GMT (envelope-from brooks@svn.freebsd.org) Message-Id: <201001032045.o03KjoUa046342@svn.freebsd.org> From: Brooks Davis Date: Sun, 3 Jan 2010 20:45:50 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r201444 - head/crypto/heimdal/kcm X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 03 Jan 2010 20:45:50 -0000 Author: brooks Date: Sun Jan 3 20:45:49 2010 New Revision: 201444 URL: http://svn.freebsd.org/changeset/base/201444 Log: The size of credential messages is limited by CMGROUP_MAX rather than NGROUPS. MFC after: 1 week Modified: head/crypto/heimdal/kcm/connect.c Modified: head/crypto/heimdal/kcm/connect.c ============================================================================== --- head/crypto/heimdal/kcm/connect.c Sun Jan 3 20:40:54 2010 (r201443) +++ head/crypto/heimdal/kcm/connect.c Sun Jan 3 20:45:49 2010 (r201444) @@ -149,7 +149,7 @@ update_client_creds(int s, kcm_client *p struct sockcred *sc; memset(&msg, 0, sizeof(msg)); - crmsgsize = CMSG_SPACE(SOCKCREDSIZE(NGROUPS)); + crmsgsize = CMSG_SPACE(SOCKCREDSIZE(CMGROUP_MAX)); if (crmsgsize == 0) return 1 ;