]> git.meshlink.io Git - catta/blobdiff - avahi-core/dns.c
remove the NotFound event, as it is not used anymore
[catta] / avahi-core / dns.c
index 63ea8a0e4d65c14e38d4d67803e774dc90a4bf6a..b91ccd0b84dd671eeb0eb413d4fba1f63e11dac7 100644 (file)
@@ -30,6 +30,7 @@
 #include <stdio.h>
 #include <assert.h>
 
+#include <avahi-common/defs.h>
 #include <avahi-common/domain.h>
 #include <avahi-common/malloc.h>
 
@@ -544,7 +545,8 @@ static int parse_rdata(AvahiDnsPacket *p, AvahiRecord *r, uint16_t rdlength) {
         case AVAHI_DNS_TYPE_TXT:
 
             if (rdlength > 0) {
-                r->data.txt.string_list = avahi_string_list_parse(avahi_dns_packet_get_rptr(p), rdlength);
+                if (avahi_string_list_parse(avahi_dns_packet_get_rptr(p), rdlength, &r->data.txt.string_list) < 0)
+                    return -1;
                 
                 if (avahi_dns_packet_skip(p, rdlength) < 0)
                     return -1;