From de3042f80873411bf2e2c3fd24579b7710bd86ea Mon Sep 17 00:00:00 2001 From: df Date: Sat, 25 Jul 2020 23:59:33 +0100 Subject: [PATCH] PTR shouldn't normally have the shorter host TTL. --- mdns.c | 1 - 1 file changed, 1 deletion(-) diff --git a/mdns.c b/mdns.c index 43127bd..50ff2b1 100644 --- a/mdns.c +++ b/mdns.c @@ -452,7 +452,6 @@ struct rr_entry *rr_create_ptr(uint8_t *name, struct rr_entry *d_rr) { FILL_RR_ENTRY(rr, name, RR_PTR); rr->cache_flush = 0; // PTRs shouldn't have their cache flush bit set rr->data.PTR.entry = d_rr; - rr->ttl = DEFAULT_TTL_FOR_RECORD_WITH_HOSTNAME; // 120 seconds -- see RFC 6762 Section 10 return rr; }