From 74ce33548fe8a7472b1fdcd0c1b78e43958f6043 Mon Sep 17 00:00:00 2001 From: Brooks Davis Date: Thu, 11 Mar 2010 07:49:46 +0000 Subject: [PATCH] Use CMGROUP_MAX instead of NGROUPS and the argument to SOCKCREDSIZE(). This is a NO-OP except on 8/9 where it is a bugfix. --- security/heimdal/Makefile | 2 +- security/heimdal/files/patch-kcm_connect.c | 14 ++++++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 security/heimdal/files/patch-kcm_connect.c diff --git a/security/heimdal/Makefile b/security/heimdal/Makefile index 094938c5594f..b2e8ad12af5a 100644 --- a/security/heimdal/Makefile +++ b/security/heimdal/Makefile @@ -7,7 +7,7 @@ PORTNAME= heimdal PORTVERSION= 1.0.1 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= security ipv6 MASTER_SITES= http://ftp.pdc.kth.se/pub/heimdal/src/ \ ftp://ftp.pdc.kth.se/pub/heimdal/src/ \ diff --git a/security/heimdal/files/patch-kcm_connect.c b/security/heimdal/files/patch-kcm_connect.c new file mode 100644 index 000000000000..88e3462bbeb3 --- /dev/null +++ b/security/heimdal/files/patch-kcm_connect.c @@ -0,0 +1,14 @@ + +$FreeBSD$ + +--- kcm/connect.c.orig ++++ kcm/connect.c +@@ -149,7 +149,7 @@ + struct sockcred *sc; + + memset(&msg, 0, sizeof(msg)); +- crmsgsize = CMSG_SPACE(SOCKCREDSIZE(NGROUPS)); ++ crmsgsize = CMSG_SPACE(SOCKCREDSIZE(CMGROUP_MAX)); + if (crmsgsize == 0) + return 1 ; +