Adam Tkac 6eed95
diff -up bind-9.5.0-P1/bin/named/xfrout.c.rh454783 bind-9.5.0-P1/bin/named-sdb/xfrout.c
Adam Tkac 6eed95
--- bind-9.5.0-P1/bin/named/xfrout.c.rh454783	2008-08-05 12:50:44.000000000 +0200
Adam Tkac 6eed95
+++ bind-9.5.0-P1/bin/named/xfrout.c	2008-08-05 12:57:54.000000000 +0200
Adam Tkac 6eed95
@@ -829,7 +829,9 @@ typedef struct {
Adam Tkac 6eed95
 	dns_name_t		*qname;		/* Question name of request */
Adam Tkac 6eed95
 	dns_rdatatype_t		qtype;		/* dns_rdatatype_{a,i}xfr */
Adam Tkac 6eed95
 	dns_rdataclass_t	qclass;
Adam Tkac 6eed95
+#ifndef DLZ
Adam Tkac 6eed95
 	dns_zone_t 		*zone;		/* (necessary for stats) */
Adam Tkac 6eed95
+#endif
Adam Tkac 6eed95
 	dns_db_t 		*db;
Adam Tkac 6eed95
 	dns_dbversion_t 	*ver;
Adam Tkac 6eed95
 	isc_quota_t		*quota;
Adam Tkac 6eed95
@@ -1330,10 +1332,14 @@ xfrout_ctx_create(isc_mem_t *mctx, ns_cl
Adam Tkac 6eed95
 	xfr->qname = qname;
Adam Tkac 6eed95
 	xfr->qtype = qtype;
Adam Tkac 6eed95
 	xfr->qclass = qclass;
Adam Tkac 6eed95
+#ifndef DLZ
Adam Tkac 6eed95
 	xfr->zone = NULL;
Adam Tkac 6eed95
+#endif
Adam Tkac 6eed95
 	xfr->db = NULL;
Adam Tkac 6eed95
 	xfr->ver = NULL;
Adam Tkac 6eed95
+#ifndef DLZ
Adam Tkac 6eed95
 	dns_zone_attach(zone, &xfr->zone);
Adam Tkac 6eed95
+#endif
Adam Tkac 6eed95
 	dns_db_attach(db, &xfr->db);
Adam Tkac 6eed95
 	dns_db_attachversion(db, ver, &xfr->ver);
Adam Tkac 6eed95
 	xfr->end_of_stream = ISC_FALSE;
Adam Tkac 6eed95
@@ -1709,8 +1715,10 @@ xfrout_ctx_destroy(xfrout_ctx_t **xfrp) 
Adam Tkac 6eed95
 		isc_quota_detach(&xfr->quota);
Adam Tkac 6eed95
 	if (xfr->ver != NULL)
Adam Tkac 6eed95
 		dns_db_closeversion(xfr->db, &xfr->ver, ISC_FALSE);
Adam Tkac 6eed95
+#ifndef DLZ
Adam Tkac 6eed95
 	if (xfr->zone != NULL)
Adam Tkac 6eed95
 		dns_zone_detach(&xfr->zone);
Adam Tkac 6eed95
+#endif
Adam Tkac 6eed95
 	if (xfr->db != NULL)
Adam Tkac 6eed95
 		dns_db_detach(&xfr->db);
Adam Tkac 6eed95
 
Adam Tkac 6eed95
@@ -1744,7 +1752,10 @@ xfrout_senddone(isc_task_t *task, isc_ev
Adam Tkac 6eed95
 		sendstream(xfr);
Adam Tkac 6eed95
 	} else {
Adam Tkac 6eed95
 		/* End of zone transfer stream. */
Adam Tkac 6eed95
+#ifndef DLZ
Adam Tkac 6eed95
+		/* XXX DLZ zones doesn't support stats */
Adam Tkac 6eed95
 		inc_stats(xfr->zone, dns_nsstatscounter_xfrdone);
Adam Tkac 6eed95
+#endif
Adam Tkac 6eed95
 		xfrout_log(xfr, ISC_LOG_INFO, "%s ended", xfr->mnemonic);
Adam Tkac 6eed95
 		ns_client_next(xfr->client, ISC_R_SUCCESS);
Adam Tkac 6eed95
 		xfrout_ctx_destroy(&xfr);