diff options
author | Adam Tkac <atkac@fedoraproject.org> | 2007-09-06 08:10:34 +0000 |
---|---|---|
committer | Adam Tkac <atkac@fedoraproject.org> | 2007-09-06 08:10:34 +0000 |
commit | 76b6450081ed3bdab12eba8bc4d410540d1245fe (patch) | |
tree | b55fed0f4d1ce2b018d751adfc2801355df089e2 | |
parent | 1c2862240772badf75140d7e930039595832a08a (diff) | |
download | bind-76b6450081ed3bdab12eba8bc4d410540d1245fe.tar.gz bind-76b6450081ed3bdab12eba8bc4d410540d1245fe.tar.xz bind-76b6450081ed3bdab12eba8bc4d410540d1245fe.zip |
- fixed wrong resolver's dispatch pool cleanup (#275011, patch from tmrazbind-9_5_0-11_9_a6_fc8
redhat com)
-rw-r--r-- | bind-9.5-pool_badfree.patch | 30 | ||||
-rw-r--r-- | bind.spec | 8 |
2 files changed, 37 insertions, 1 deletions
diff --git a/bind-9.5-pool_badfree.patch b/bind-9.5-pool_badfree.patch new file mode 100644 index 0000000..7aa577a --- /dev/null +++ b/bind-9.5-pool_badfree.patch @@ -0,0 +1,30 @@ +Written-by: Tomas Mraz <tmraz@redhat.com> +Reviewed-by: Adam Tkac <atkac@redhat.com> + +diff -up bind-9.5.0a6/lib/dns/resolver.c.badfree bind-9.5.0a6/lib/dns/resolver.c +--- bind-9.5.0a6/lib/dns/resolver.c.badfree 2007-06-19 01:47:41.000000000 +0200 ++++ bind-9.5.0a6/lib/dns/resolver.c 2007-09-05 16:20:21.000000000 +0200 +@@ -7455,17 +7455,17 @@ dns_resolver_createdispatchpool(dns_reso + return (result); + + cleanup: +- for (i = 0; i < ndisps; i++) { +- if (res->dispatchv4pool[i] != NULL) +- dns_dispatch_detach(&res->dispatchv4pool[i]); +- if (res->dispatchv6pool[i] != NULL) +- dns_dispatch_detach(&res->dispatchv6pool[i]); +- } + if (res->dispatchv4pool != NULL) { ++ for (i = 0; i < ndisps; i++) ++ if (res->dispatchv4pool[i] != NULL) ++ dns_dispatch_detach(&res->dispatchv4pool[i]); + isc_mem_put(res->mctx, res->dispatchv4pool, + sizeof(dns_dispatch_t *) * ndisps); + } + if (res->dispatchv6pool != NULL) { ++ for (i = 0; i < ndisps; i++) ++ if (res->dispatchv6pool[i] != NULL) ++ dns_dispatch_detach(&res->dispatchv6pool[i]); + isc_mem_put(res->mctx, res->dispatchv6pool, + sizeof(dns_dispatch_t *) * ndisps); + } @@ -21,7 +21,7 @@ Summary: The Berkeley Internet Name Domain (BIND) DNS (Domain Name System) serv Name: bind License: ISC Version: 9.5.0 -Release: 11.3.%{RELEASEVER}%{?dist} +Release: 11.9.%{RELEASEVER}%{?dist} Epoch: 32 Url: http://www.isc.org/products/BIND/ Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) @@ -67,6 +67,7 @@ Patch72: bind-9.5-dlz-64bit.patch Patch75: bind-9.5-update.patch Patch76: bind-9.5-2119_revert.patch Patch77: bind-9.5-fix_h_errno.patch +Patch78: bind-9.5-pool_badfree.patch # SDB patches Patch11: bind-9.3.2b2-sdbsrc.patch @@ -250,6 +251,7 @@ cp -fp contrib/dbus/{dbus_mgr.h,dbus_service.h} bin/named/include/named %patch75 -p1 -b .update %patch76 -p1 -b .2119 %patch77 -p1 -b .errno +%patch78 -p1 -b .badfree :; @@ -646,6 +648,10 @@ rm -rf ${RPM_BUILD_ROOT} %{_sbindir}/bind-chroot-admin %changelog +* Wed Sep 05 2007 Adam Tkac <atkac redhat com> 32:9.5.0-11.9.a6 +- fixed wrong resolver's dispatch pool cleanup (#275011, patch from + tmraz redhat com) + * Wed Sep 05 2007 Adam Tkac <atkac redhat com> 32:9.5.0-11.3.a6 - initscript failure message is now printed correctly (#277981, Quentin Armitage (quentin armitage org uk) ) |