bind 9.9.0rc3 inline signing server not updating unsigned zone

Mark Andrews marka at isc.org
Tue Feb 21 22:54:20 UTC 2012


Index: bin/named/server.c
===================================================================
RCS file: /proj/cvs/prod/bind9/bin/named/server.c,v
retrieving revision 1.638.4.3
diff -u -r1.638.4.3 server.c
--- bin/named/server.c	7 Feb 2012 00:58:40 -0000	1.638.4.3
+++ bin/named/server.c	21 Feb 2012 22:43:04 -0000
@@ -5986,11 +5986,18 @@
 ns_server_retransfercommand(ns_server_t *server, char *args) {
 	isc_result_t result;
 	dns_zone_t *zone = NULL;
+	dns_zone_t *raw = NULL;
 	dns_zonetype_t type;
 
 	result = zone_from_args(server, args, NULL, &zone, NULL, ISC_TRUE);
 	if (result != ISC_R_SUCCESS)
 		return (result);
+	dns_zone_getraw(zone, &raw);
+	if (raw != NULL) {
+		dns_zone_detach(&zone);
+		dns_zone_attach(raw, &zone);
+		dns_zone_detach(&raw);
+	}
 	if (zone == NULL)
 		return (ISC_R_UNEXPECTEDEND);
 	type = dns_zone_gettype(zone);
-- 
Mark Andrews, ISC
1 Seymour St., Dundas Valley, NSW 2117, Australia
PHONE: +61 2 9871 4742                 INTERNET: marka at isc.org



More information about the bind-users mailing list