Adam Tkac 6322ce
diff -up bind-9.8.0-P4/bin/named/main.c.rh725741 bind-9.8.0-P4/bin/named/main.c
Adam Tkac 6322ce
--- bind-9.8.0-P4/bin/named/main.c.rh725741	2011-08-03 15:20:28.487516386 +0200
Adam Tkac 6322ce
+++ bind-9.8.0-P4/bin/named/main.c	2011-08-03 15:20:50.197514932 +0200
Adam Tkac 6322ce
@@ -872,8 +872,6 @@ setup(void) {
Adam Tkac 6322ce
 
Adam Tkac 6322ce
 static void
Adam Tkac 6322ce
 cleanup(void) {
Adam Tkac 6322ce
-	dns_dynamic_db_cleanup(ISC_TRUE);
Adam Tkac 6322ce
-
Adam Tkac 6322ce
 	destroy_managers();
Adam Tkac 6322ce
 
Adam Tkac 6322ce
 	ns_server_destroy(&ns_g_server);
Adam Tkac 6322ce
diff -up bind-9.8.0-P4/bin/named/server.c.rh725741 bind-9.8.0-P4/bin/named/server.c
Adam Tkac 6322ce
--- bind-9.8.0-P4/bin/named/server.c.rh725741	2011-08-03 15:20:42.009515447 +0200
Adam Tkac 6322ce
+++ bind-9.8.0-P4/bin/named/server.c	2011-08-03 15:21:01.878514035 +0200
Adam Tkac 6322ce
@@ -5263,6 +5263,8 @@ shutdown_server(isc_task_t *task, isc_ev
Adam Tkac 6322ce
 			dns_view_detach(&view);
Adam Tkac 6322ce
 	}
Adam Tkac 6322ce
 
Adam Tkac 6322ce
+	dns_dynamic_db_cleanup(ISC_TRUE);
Adam Tkac 6322ce
+
Adam Tkac 6322ce
 	while ((nsc = ISC_LIST_HEAD(server->cachelist)) != NULL) {
Adam Tkac 6322ce
 		ISC_LIST_UNLINK(server->cachelist, nsc, link);
Adam Tkac 6322ce
 		dns_cache_detach(&nsc->cache);