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.
This commit is contained in:
parent
16be93eb0a
commit
74ce33548f
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=250884
2 changed files with 15 additions and 1 deletions
|
@ -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/ \
|
||||
|
|
14
security/heimdal/files/patch-kcm_connect.c
Normal file
14
security/heimdal/files/patch-kcm_connect.c
Normal file
|
@ -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 ;
|
||||
|
Loading…
Reference in a new issue