From 6e9695a1e6a5f6a70195b6de37448aaf9cde8e30 Mon Sep 17 00:00:00 2001 From: Trent Lloyd Date: Fri, 29 Dec 2006 12:50:03 +0000 Subject: [PATCH] * 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 --- avahi-core/dns.c | 2 ++ 1 file changed, 2 insertions(+) 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) { -- 2.39.5