PTR shouldn't normally have the shorter host TTL.

This commit is contained in:
df 2020-07-25 23:59:33 +01:00
parent 3a24c51c56
commit de3042f808

1
mdns.c
View File

@ -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); FILL_RR_ENTRY(rr, name, RR_PTR);
rr->cache_flush = 0; // PTRs shouldn't have their cache flush bit set rr->cache_flush = 0; // PTRs shouldn't have their cache flush bit set
rr->data.PTR.entry = d_rr; rr->data.PTR.entry = d_rr;
rr->ttl = DEFAULT_TTL_FOR_RECORD_WITH_HOSTNAME; // 120 seconds -- see RFC 6762 Section 10
return rr; return rr;
} }