summaryrefslogtreecommitdiff
path: root/security/heimdal/files/patch-cl
diff options
context:
space:
mode:
authorJacques Vidrine <nectar@FreeBSD.org>2000-11-09 23:35:03 +0000
committerJacques Vidrine <nectar@FreeBSD.org>2000-11-09 23:35:03 +0000
commit2cf9350a4efdb46b41d8c5899ad6e871ce10b07f (patch)
treeb532d123acafead4be241321243f33993c59c901 /security/heimdal/files/patch-cl
parentUpgrade to courier-imap 1.2.2 (diff)
= Use system libcom_err.
No longer build or install the included libcom_err and compile_et. = ftpd now uses IP_PORTRANGE* in the same fashion as the system ftpd. By default, ftpd will now use high port numbers for serving clients in passive mode. = Fix segmentation fault in kadmin. A null pointer dereference that was only tickled when using kadmin with a kdc that uses LDAP as the backend. = Fix a search filter in hdb-ldap.c. A lookup was failing to fetch operational attributes such as modifiersName. = Bump PORTREVISION for above changes.
Notes
Notes: svn path=/head/; revision=34951
Diffstat (limited to '')
-rw-r--r--security/heimdal/files/patch-cl34
1 files changed, 34 insertions, 0 deletions
diff --git a/security/heimdal/files/patch-cl b/security/heimdal/files/patch-cl
new file mode 100644
index 000000000000..87e7d1b21bfe
--- /dev/null
+++ b/security/heimdal/files/patch-cl
@@ -0,0 +1,34 @@
+--- lib/roken/socket.c.orig Wed Jul 26 23:41:06 2000
++++ lib/roken/socket.c Fri Nov 3 11:56:34 2000
+@@ -222,6 +222,31 @@
+ }
+
+ /*
++ * Set the range of ports to use when binding with port = 0.
++ */
++void
++socket_set_portrange (int sock, int restrict, int af)
++{
++#if defined(IP_PORTRANGE)
++ if (af == AF_INET) {
++ int on = restrict ? IP_PORTRANGE_HIGH : IP_PORTRANGE_DEFAULT;
++ if (setsockopt (sock, IPPROTO_IP, IP_PORTRANGE, &on,
++ sizeof(on)) < 0)
++ warn ("setsockopt IP_PORTRANGE (ignored)");
++ }
++#endif
++#if defined(IPV6_PORTRANGE)
++ if (af == AF_INET6) {
++ int on = restrict ? IPV6_PORTRANGE_HIGH :
++ IPV6_PORTRANGE_DEFAULT;
++ if (setsockopt (sock, IPPROTO_IPV6, IPV6_PORTRANGE, &on,
++ sizeof(on)) < 0)
++ warn ("setsockopt IPV6_PORTRANGE (ignored)");
++ }
++#endif
++}
++
++/*
+ * Enable debug on `sock'.
+ */
+