From 6b85cb2838d070d67b992b62078fc75102543c39 Mon Sep 17 00:00:00 2001 From: Adam Tkac Date: Dec 09 2008 15:35:38 +0000 Subject: - allow to reuse address for non-random query-source ports (#475120) --- 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 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 32:9.5.1-0.9.2.b3 - fixed rare use-after-free problem in host utility (#452060)