From: Lennart Poettering Date: Thu, 31 Jul 2014 16:41:54 +0000 (+0200) Subject: resolved: properly compare RRs we cannot parse X-Git-Tag: v216~327 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=commitdiff_plain;h=fd0b4602f6332c3f1660eb208c8f5c719709a009;ds=sidebyside resolved: properly compare RRs we cannot parse --- diff --git a/src/resolve/resolved-dns-rr.c b/src/resolve/resolved-dns-rr.c index 04004de5e..6cb4ed929 100644 --- a/src/resolve/resolved-dns-rr.c +++ b/src/resolve/resolved-dns-rr.c @@ -330,7 +330,10 @@ int dns_resource_record_equal(const DnsResourceRecord *a, const DnsResourceRecor if (r <= 0) return r; - switch (a->key->type) { + if (a->unparseable != b->unparseable) + return 0; + + switch (a->unparseable ? _DNS_TYPE_INVALID : a->key->type) { case DNS_TYPE_SRV: r = dns_name_equal(a->srv.name, b->srv.name);