1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2024-12-24 21:34:08 +03:00

resolve: use dns_answer_isempty() at one more place

This commit is contained in:
Yu Watanabe 2022-05-07 01:04:19 +09:00
parent 87d3b4ef3b
commit 6edf21dba7

View 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. */