diff options
author | Lennart Poettering <lennart@poettering.net> | 2014-07-31 18:41:54 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2014-07-31 18:41:54 +0200 |
commit | fd0b4602f6332c3f1660eb208c8f5c719709a009 (patch) | |
tree | be15f318f6a26b5604b21105e4d744dc320406b9 /src | |
parent | 42cc2eebb01056beb7acd3ecfe8e533558237f84 (diff) |
resolved: properly compare RRs we cannot parse
Diffstat (limited to 'src')
-rw-r--r-- | src/resolve/resolved-dns-rr.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/resolve/resolved-dns-rr.c b/src/resolve/resolved-dns-rr.c index 04004de5e7..6cb4ed929e 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); |