X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;ds=sidebyside;f=avahi-core%2Fdns.c;h=6a7fd58d9594ffcbb4832463c171180c784743a8;hb=36c53c0c4c5764f4a5f14b2b49b9f3c7ef8d9adb;hp=5addf53c4139a7d68495b36fd97ccbec0b861644;hpb=c0244c2448a5504581ae24e78b5859760b999b8e;p=catta diff --git a/avahi-core/dns.c b/avahi-core/dns.c index 5addf53..6a7fd58 100644 --- a/avahi-core/dns.c +++ b/avahi-core/dns.c @@ -482,7 +482,7 @@ AvahiRecord* avahi_dns_packet_consume_record(AvahiDnsPacket *p, gboolean *ret_ca start = avahi_dns_packet_get_rptr(p); - r = avahi_record_new_full(name, class, type); + r = avahi_record_new_full(name, class, type, ttl); switch (type) { case AVAHI_DNS_TYPE_PTR: @@ -577,8 +577,6 @@ AvahiRecord* avahi_dns_packet_consume_record(AvahiDnsPacket *p, gboolean *ret_ca /* Check if we read enough data */ if ((guint8*) avahi_dns_packet_get_rptr(p) - (guint8*) start != rdlength) goto fail; - - r->ttl = ttl; return r;