projects
/
systemd
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
71aee23
)
resolve: move the RRSIG after the all corresponding entries
author
Yu Watanabe
<watanabe.yu+github@gmail.com>
Fri, 6 May 2022 16:01:43 +0000
(
01:01
+0900)
committer
Yu Watanabe
<watanabe.yu+github@gmail.com>
Sat, 7 May 2022 06:14:41 +0000
(15:14 +0900)
Fixes #22002.
src/resolve/resolved-dns-answer.c
patch
|
blob
|
history
diff --git
a/src/resolve/resolved-dns-answer.c
b/src/resolve/resolved-dns-answer.c
index 54cc15b63154d1cec897b3b761750c5e462bce57..96ae9bc0057b07a8018a88c86eae87d5e3c8f0ee 100644
(file)
--- a/
src/resolve/resolved-dns-answer.c
+++ b/
src/resolve/resolved-dns-answer.c
@@
-205,6
+205,12
@@
int dns_answer_add(
}
exist->flags |= flags;
+
+ if (rr->key->type == DNS_TYPE_RRSIG) {
+ /* If the rr is RRSIG, then move the rr to the end. */
+ assert_se(ordered_set_remove(a->items, exist) == exist);
+ assert_se(ordered_set_put(a->items, exist) == 1);
+ }
return 0;
}