Blame SOURCES/0006-Silently-ignore-invalid-DNS-packets.patch

1a7c47
From a372e0bfb25f9f8f0d5878d317be7b614f5a4571 Mon Sep 17 00:00:00 2001
1a7c47
From: rpm-build <rpm-build>
1a7c47
Date: Thu, 17 Dec 2015 17:12:07 +0100
1a7c47
Subject: [PATCH] Silently ignore invalid DNS packets
1a7c47
1a7c47
Resolves: #1290890
1a7c47
---
1a7c47
 avahi-core/server.c | 6 ++----
1a7c47
 1 file changed, 2 insertions(+), 4 deletions(-)
1a7c47
1a7c47
diff --git a/avahi-core/server.c b/avahi-core/server.c
1a7c47
index 86fd4a5..4acf5fc 100644
1a7c47
--- a/avahi-core/server.c
1a7c47
+++ b/avahi-core/server.c
1a7c47
@@ -972,11 +972,9 @@ static void dispatch_packet(AvahiServer *s, AvahiDnsPacket *p, const AvahiAddres
1a7c47
             return;
1a7c47
         }
1a7c47
 
1a7c47
-        if (avahi_dns_packet_get_field(p, AVAHI_DNS_FIELD_QDCOUNT) != 0 ||
1a7c47
-            avahi_dns_packet_get_field(p, AVAHI_DNS_FIELD_ANCOUNT) == 0 ||
1a7c47
-            avahi_dns_packet_get_field(p, AVAHI_DNS_FIELD_NSCOUNT) != 0) {
1a7c47
+        if (avahi_dns_packet_get_field(p, AVAHI_DNS_FIELD_ANCOUNT) == 0) {
1a7c47
 
1a7c47
-            avahi_log_warn("Invalid response packet from host %s.", avahi_address_snprint(t, sizeof(t), src_address));
1a7c47
+            avahi_log_debug("Invalid response packet from host %s.", avahi_address_snprint(t, sizeof(t), src_address));
1a7c47
             return;
1a7c47
         }
1a7c47
 
1a7c47
-- 
1a7c47
2.5.0
1a7c47