From: Trent Lloyd Date: Fri, 29 Dec 2006 12:50:03 +0000 (+0000) Subject: * Make sure we return -1 if we fall of the end of consume_labels() X-Git-Url: https://git.meshlink.io/?a=commitdiff_plain;h=6e9695a1e6a5f6a70195b6de37448aaf9cde8e30;p=catta * Make sure we return -1 if we fall of the end of consume_labels() git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1353 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe --- diff --git a/avahi-core/dns.c b/avahi-core/dns.c index b31aa20..6817ebd 100644 --- a/avahi-core/dns.c +++ b/avahi-core/dns.c @@ -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) {