chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
42cc2ee
)
resolved: properly compare RRs we cannot parse
author
Lennart Poettering
<lennart@poettering.net>
Thu, 31 Jul 2014 16:41:54 +0000
(18:41 +0200)
committer
Lennart Poettering
<lennart@poettering.net>
Thu, 31 Jul 2014 16:41:54 +0000
(18:41 +0200)
src/resolve/resolved-dns-rr.c
patch
|
blob
|
history
diff --git
a/src/resolve/resolved-dns-rr.c
b/src/resolve/resolved-dns-rr.c
index 04004de5e7f9cc5a2f89e3a79acc631344821d1a..6cb4ed929e4b7c0049595cded7f3287924ee4f66 100644
(file)
--- 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);