]> git.meshlink.io Git - catta/commitdiff
* Make sure we return -1 if we fall of the end of consume_labels()
authorTrent Lloyd <lathiat@bur.st>
Fri, 29 Dec 2006 12:50:03 +0000 (12:50 +0000)
committerTrent Lloyd <lathiat@bur.st>
Fri, 29 Dec 2006 12:50:03 +0000 (12:50 +0000)
git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1353 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe

avahi-core/dns.c

index b31aa20820cc3d9fec2d647b042b0331a0129d78..6817ebde6b43c2c5405fde9265546810f2f65bc6 100644 (file)
@@ -400,6 +400,8 @@ static int consume_labels(AvahiDnsPacket *p, unsigned idx, char *ret_name, size_
         } else
             return -1;
     }
+
+    return -1;
 }
 
 int avahi_dns_packet_consume_name(AvahiDnsPacket *p, char *ret_name, size_t l) {