diff options
author | brooks <brooks@FreeBSD.org> | 2010-03-11 15:49:46 +0800 |
---|---|---|
committer | brooks <brooks@FreeBSD.org> | 2010-03-11 15:49:46 +0800 |
commit | cf7737c8859ab907372751a82a5c2d715941368c (patch) | |
tree | d693b36b82c85f89c32334cf762303073fdbd4f6 /security/heimdal/files | |
parent | 5de3103a06c4c0d27f8283d5ce9f77d391d62a93 (diff) | |
download | freebsd-ports-gnome-cf7737c8859ab907372751a82a5c2d715941368c.tar.gz freebsd-ports-gnome-cf7737c8859ab907372751a82a5c2d715941368c.tar.zst freebsd-ports-gnome-cf7737c8859ab907372751a82a5c2d715941368c.zip |
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.
Diffstat (limited to 'security/heimdal/files')
-rw-r--r-- | security/heimdal/files/patch-kcm_connect.c | 14 |
1 files changed, 14 insertions, 0 deletions
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 ; + |