rpms/bind/devel bind-96-rh475120.patch, NONE, 1.1 bind.spec, 1.292, 1.293

Adam Tkac atkac at fedoraproject.org
Tue Dec 9 14:21:36 UTC 2008


Author: atkac

Update of /cvs/pkgs/rpms/bind/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv2236

Modified Files:
	bind.spec 
Added Files:
	bind-96-rh475120.patch 
Log Message:
- allow to reuse address for non-random query-source ports (#475120)


bind-96-rh475120.patch:

--- NEW FILE bind-96-rh475120.patch ---
diff -up bind-9.6.0rc1/lib/dns/dispatch.c.rh475120 bind-9.6.0rc1/lib/dns/dispatch.c
--- bind-9.6.0rc1/lib/dns/dispatch.c.rh475120	2008-11-13 00:10:57.000000000 +0100
+++ bind-9.6.0rc1/lib/dns/dispatch.c	2008-12-09 15:06:18.000000000 +0100
@@ -2702,6 +2702,15 @@ get_udpsocket(dns_dispatchmgr_t *mgr, dn
 		 * If this fails 1024 times, we then ask the kernel for
 		 * choosing one.
 		 */
+	} else {
+		/* Allow to reuse address for non-random ports */
+		result = open_socket(sockmgr, localaddr,
+			             ISC_SOCKET_REUSEADDRESS, &sock);
+
+		if (result == ISC_R_SUCCESS)
+			*sockp = sock;
+
+		return (result);
 	}
 
 	memset(held, 0, sizeof(held));


Index: bind.spec
===================================================================
RCS file: /cvs/pkgs/rpms/bind/devel/bind.spec,v
retrieving revision 1.292
retrieving revision 1.293
diff -u -r1.292 -r1.293
--- bind.spec	8 Dec 2008 11:35:53 -0000	1.292
+++ bind.spec	9 Dec 2008 14:21:05 -0000	1.293
@@ -18,7 +18,7 @@
 Name:     bind
 License:  ISC
 Version:  9.6.0
-Release:  0.5.%{PREVER}%{?dist}
+Release:  0.5.1.%{PREVER}%{?dist}
 Epoch:    32
 Url:      http://www.isc.org/products/BIND/
 Buildroot:%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
@@ -63,6 +63,7 @@
 Patch99: bind-96-libtool2.patch
 Patch101:bind-96-old-api.patch
 Patch102:bind-95-rh452060.patch
+Patch103:bind-96-rh475120.patch
 
 # SDB patches
 Patch11: bind-9.3.2b2-sdbsrc.patch
@@ -239,6 +240,7 @@
 %endif
 
 %patch102 -p1 -b .rh452060
+%patch103 -p1 -b .rh475120
 
 # Sparc and s390 arches need to use -fPIE
 %ifarch sparcv9 sparc64 s390 s390x
@@ -597,6 +599,9 @@
 %ghost %{chroot_prefix}/etc/localtime
 
 %changelog
+* Tue Dec 09 2008 Adam Tkac <atkac redhat com> 32:9.6.0-0.5.1.rc1
+- allow to reuse address for non-random query-source ports (#475120)
+
 * Wed Dec 03 2008 Adam Tkac <atkac redhat com> 32:9.6.0-0.5.rc1
 - 9.6.0rc1 release
 - patches merged




More information about the fedora-extras-commits mailing list