summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Tkac <atkac@fedoraproject.org>2008-12-09 15:35:38 +0000
committerAdam Tkac <atkac@fedoraproject.org>2008-12-09 15:35:38 +0000
commit6b85cb2838d070d67b992b62078fc75102543c39 (patch)
tree2c15e2d6b72cd15fd391a1a22291da1cecbb0275
parente19ac8e0f18d7b05fed99069f76d07c4cb1d4395 (diff)
downloadbind-9_5_1-0_9_3_b3_fc10.tar.gz
bind-9_5_1-0_9_3_b3_fc10.tar.xz
bind-9_5_1-0_9_3_b3_fc10.zip
- allow to reuse address for non-random query-source ports (#475120)bind-9_5_1-0_9_3_b3_fc10
-rw-r--r--bind-96-rh475120.patch19
-rw-r--r--bind.spec7
2 files changed, 25 insertions, 1 deletions
diff --git a/bind-96-rh475120.patch b/bind-96-rh475120.patch
new file mode 100644
index 0000000..9359647
--- /dev/null
+++ b/bind-96-rh475120.patch
@@ -0,0 +1,19 @@
+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));
diff --git a/bind.spec b/bind.spec
index dbcdb81..f30edec 100644
--- a/bind.spec
+++ b/bind.spec
@@ -19,7 +19,7 @@ Summary: The Berkeley Internet Name Domain (BIND) DNS (Domain Name System) serv
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 @@ Patch87: bind-9.5-parallel-build.patch
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 @@ for i in bin/named{,-sdb}/{,unix}/Makefile.in; do
done
%endif
+%patch98 -p1 -b .rh475120
:;
%build
@@ -638,6 +640,9 @@ rm -rf ${RPM_BUILD_ROOT}
%{_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)