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:
parent
71aee23dba
commit
388c92ce09
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user