File avahi-null-packet-infinite-loop.patch of Package avahi

Index: avahi-0.6.23/avahi-core/socket.c
===================================================================
--- avahi-0.6.23.orig/avahi-core/socket.c
+++ avahi-0.6.23/avahi-core/socket.c
@@ -678,6 +678,10 @@ AvahiDnsPacket *avahi_recv_dns_packet_ip
         goto fail;
     }
 
+	/* corrupt packets have zero size */
+	if (!ms)
+		goto fail;
+
     if (sa.sin_addr.s_addr == INADDR_ANY) {
         /* Linux 2.4 behaves very strangely sometimes! */
         goto fail;
@@ -832,6 +836,10 @@ AvahiDnsPacket *avahi_recv_dns_packet_ip
         goto fail;
     }
 
+	/* corrupt packets have zero size */
+	if (!ms)
+		goto fail;
+
     assert(!(msg.msg_flags & MSG_CTRUNC));
     assert(!(msg.msg_flags & MSG_TRUNC));