rpms/bind/F-10 bind-96-rh475120.patch, NONE, 1.1 bind.spec, 1.288, 1.289

Adam Tkac atkac at fedoraproject.org
Tue Dec 9 15:36:09 UTC 2008


Author: atkac

Update of /cvs/pkgs/rpms/bind/F-10
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv17631

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/F-10/bind.spec,v
retrieving revision 1.288
retrieving revision 1.289
diff -u -r1.288 -r1.289
--- bind.spec	3 Dec 2008 12:23:28 -0000	1.288
+++ bind.spec	9 Dec 2008 15:35:38 -0000	1.289
@@ -19,7 +19,7 @@
 Name:     bind
 License:  ISC
 Version:  9.5.1
-Release:  0.9.2.%{PREVER}%{?dist}
+Release:  0.9.3.%{PREVER}%{?dist}
 Epoch:    32
 Url:      http://www.isc.org/products/BIND/
 Buildroot:%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
@@ -59,6 +59,7 @@
 Patch95: bind-95-sdlz-include.patch
 Patch96: bind-95-rh469440.patch
 Patch97: bind-95-rh452060.patch
+Patch98: bind-96-rh475120.patch
 
 # SDB patches
 Patch11: bind-9.3.2b2-sdbsrc.patch
@@ -249,6 +250,7 @@
 done
 %endif
 
+%patch98 -p1 -b .rh475120
 :;
 
 %build
@@ -638,6 +640,9 @@
 %{_sbindir}/bind-chroot-admin
 
 %changelog
+* Tue Dec 09 2008 Adam Tkac <atkac redhat com> 32:9.5.1-0.9.3.b3
+- allow to reuse address for non-random query-source ports (#475120)
+
 * Tue Dec 02 2008 Adam Tkac <atkac redhat com> 32:9.5.1-0.9.2.b3
 - fixed rare use-after-free problem in host utility (#452060)
 




More information about the fedora-extras-commits mailing list