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

resolve: move the RRSIG after the all corresponding entries

Fixes #22002.
This commit is contained in:
Yu Watanabe 2022-05-07 01:01:43 +09:00
parent 71aee23dba
commit 388c92ce09

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;
}