projects
/
systemd
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
87d3b4e
)
resolve: use dns_answer_isempty() at one more place
author
Yu Watanabe
<watanabe.yu+github@gmail.com>
Fri, 6 May 2022 16:04:19 +0000
(
01:04
+0900)
committer
Yu Watanabe
<watanabe.yu+github@gmail.com>
Sat, 7 May 2022 06:14:41 +0000
(15:14 +0900)
src/resolve/resolved-dns-dnssec.c
patch
|
blob
|
history
diff --git
a/src/resolve/resolved-dns-dnssec.c
b/src/resolve/resolved-dns-dnssec.c
index 5c2e936163daf26c259e2f02e1afab51267edb86..859fb2704315d70d68a8dc7c9298102051083d34 100644
(file)
--- a/
src/resolve/resolved-dns-dnssec.c
+++ b/
src/resolve/resolved-dns-dnssec.c
@@
-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. */