summaryrefslogtreecommitdiff
path: root/usr.sbin/nsd/axfr.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/nsd/axfr.c')
-rw-r--r--usr.sbin/nsd/axfr.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/usr.sbin/nsd/axfr.c b/usr.sbin/nsd/axfr.c
index 6ed41cab61a..f780811fc9f 100644
--- a/usr.sbin/nsd/axfr.c
+++ b/usr.sbin/nsd/axfr.c
@@ -74,7 +74,8 @@ query_axfr(struct nsd *nsd, struct query *query)
assert(query->axfr_zone->soa_rrset->rr_count == 1);
added = packet_encode_rr(query,
query->axfr_zone->apex,
- &query->axfr_zone->soa_rrset->rrs[0]);
+ &query->axfr_zone->soa_rrset->rrs[0],
+ query->axfr_zone->soa_rrset->rrs[0].ttl);
if (!added) {
/* XXX: This should never happen... generate error code? */
abort();
@@ -109,7 +110,8 @@ query_axfr(struct nsd *nsd, struct query *query)
added = packet_encode_rr(
query,
query->axfr_current_domain,
- &query->axfr_current_rrset->rrs[query->axfr_current_rr]);
+ &query->axfr_current_rrset->rrs[query->axfr_current_rr],
+ query->axfr_current_rrset->rrs[query->axfr_current_rr].ttl);
if (!added)
goto return_answer;
++total_added;
@@ -132,7 +134,8 @@ query_axfr(struct nsd *nsd, struct query *query)
assert(query->axfr_zone->soa_rrset->rr_count == 1);
added = packet_encode_rr(query,
query->axfr_zone->apex,
- &query->axfr_zone->soa_rrset->rrs[0]);
+ &query->axfr_zone->soa_rrset->rrs[0],
+ query->axfr_zone->soa_rrset->rrs[0].ttl);
if (added) {
++total_added;
query->tsig_sign_it = 1; /* sign last packet */