mirror of
https://github.com/systemd/systemd-stable.git
synced 2024-10-28 03:25:27 +03:00
resolved: don't honour mDNS cache-flush bit for OPT RRs
OPT RRs after all use the class field for other purposes than actually encoding a class, hence the cache flush bit doesn't apply really.
This commit is contained in:
parent
ef9a3e3c28
commit
9a9999a713
@ -1483,7 +1483,7 @@ int dns_packet_read_key(DnsPacket *p, DnsResourceKey **ret, size_t *start) {
|
||||
if (p->protocol == DNS_PROTOCOL_MDNS) {
|
||||
/* See RFC6762, Section 10.2 */
|
||||
|
||||
if (class & MDNS_RR_CACHE_FLUSH)
|
||||
if (type != DNS_TYPE_OPT && (class & MDNS_RR_CACHE_FLUSH))
|
||||
class &= ~MDNS_RR_CACHE_FLUSH;
|
||||
else
|
||||
cache_flush = false;
|
||||
|
Loading…
Reference in New Issue
Block a user