1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2025-01-12 09:17:44 +03:00

resolved: actually use the specified rrsig argument

The argument only exists to be used to override/fill in the RRSIG record
of the answer item. Hence actually use it instead of ignore it.

(Not sure how this got lost earlier.)

Fixes: #18714
This commit is contained in:
Lennart Poettering 2021-02-23 00:07:12 +01:00 committed by Zbigniew Jędrzejewski-Szmek
parent 67e700bad7
commit 048e043375

View File

@ -668,7 +668,7 @@ int dns_answer_copy_by_key(
if (r < 0)
return r;
r = dns_answer_add(*a, item->rr, item->ifindex, item->flags|or_flags, item->rrsig);
r = dns_answer_add(*a, item->rr, item->ifindex, item->flags|or_flags, rrsig ?: item->rrsig);
if (r < 0)
return r;
}