Sophie

Sophie

distrib > Mandriva > mes5 > x86_64 > by-pkgid > 9a5a0484f2563e143982b79cdf777c22 > files > 2

avahi-0.6.23-1.2mdv2009.0.src.rpm

--- a/avahi-core/server.c
+++ b/avahi-core/server.c
@@ -898,6 +898,12 @@ static void dispatch_packet(AvahiServer *s, AvahiDnsPacket *p, const AvahiAddres
         return;
     }
 
+    if (port <= 0) {
+        /* This fixes RHBZ #475394 */
+        avahi_log_warn("Received packet from invalid source port.");
+        return;
+    }
+
     if (avahi_address_is_ipv4_in_ipv6(src_address))
         /* This is an IPv4 address encapsulated in IPv6, so let's ignore it. */
         return;