resolve: move the RRSIG after the all corresponding entries

Fixes #22002.
This commit is contained in:
Yu Watanabe
2022-05-07 15:14:41 +09:00
parent 71aee23dba
commit 388c92ce09
+6
View File
@@ -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;
}