05a63233a9
Subbing this we forgot... - The patch applied in GF from mgorse is added here via rebase. OBS-URL: https://build.opensuse.org/request/show/404321 OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/avahi?expand=0&rev=129
25 lines
1.0 KiB
Diff
25 lines
1.0 KiB
Diff
From: Mike Gorse <mgorse@suse.com>
|
|
Date: Wed Oct 7 15:14:31 CDT 2015
|
|
Subject: don't spam logs with invalid packets
|
|
|
|
We should silently ignore any questions in the Question Section of
|
|
a received Multicast DNS Response.
|
|
Also, use avahi_log_debug to log invalid packets.
|
|
Taken from Fedora / http://www.avahi.org/ticket/352
|
|
|
|
Index: avahi-0.6.32/avahi-core/server.c
|
|
===================================================================
|
|
--- avahi-0.6.32.orig/avahi-core/server.c
|
|
+++ avahi-0.6.32/avahi-core/server.c
|
|
@@ -972,9 +972,7 @@ static void dispatch_packet(AvahiServer
|
|
return;
|
|
}
|
|
|
|
- if (avahi_dns_packet_get_field(p, AVAHI_DNS_FIELD_QDCOUNT) != 0 ||
|
|
- avahi_dns_packet_get_field(p, AVAHI_DNS_FIELD_ANCOUNT) == 0 ||
|
|
- avahi_dns_packet_get_field(p, AVAHI_DNS_FIELD_NSCOUNT) != 0) {
|
|
+ if (avahi_dns_packet_get_field(p, AVAHI_DNS_FIELD_ANCOUNT) == 0) {
|
|
|
|
avahi_log_debug("Invalid response packet from host %s.", avahi_address_snprint(t, sizeof(t), src_address));
|
|
return;
|