]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
resolve: do not compare key twice
authorYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 29 Dec 2020 14:44:53 +0000 (23:44 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 29 Dec 2020 16:22:59 +0000 (01:22 +0900)
src/resolve/resolved-dns-rr.c

index 624120bd47ce447166c919b833c2fe1cb87e7258..d20917b4e24cc9503f2302fce0fcbf7d8eda908d 100644 (file)
@@ -1486,7 +1486,7 @@ static int dns_resource_record_compare_func(const DnsResourceRecord *x, const Dn
         if (r != 0)
                 return r;
 
-        if (dns_resource_record_equal(x, y))
+        if (dns_resource_record_payload_equal(x, y) > 0)
                 return 0;
 
         /* We still use CMP() here, even though don't implement proper