]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
resolve: use dns_answer_isempty() at one more place
authorYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 6 May 2022 16:04:19 +0000 (01:04 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Sat, 7 May 2022 06:14:41 +0000 (15:14 +0900)
src/resolve/resolved-dns-dnssec.c

index 5c2e936163daf26c259e2f02e1afab51267edb86..859fb2704315d70d68a8dc7c9298102051083d34 100644 (file)
@@ -1184,7 +1184,7 @@ int dnssec_verify_rrset_search(
 
         /* Verifies all RRs from "a" that match the key "key" against DNSKEYs in "validated_dnskeys" */
 
-        if (!a || a->n_rrs <= 0)
+        if (dns_answer_isempty(a))
                 return -ENODATA;
 
         /* Iterate through each RRSIG RR. */