mirror of
https://github.com/systemd/systemd.git
synced 2024-11-05 06:52:22 +03:00
resolved: properly compare RRs we cannot parse
This commit is contained in:
parent
42cc2eebb0
commit
fd0b4602f6
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user