Skip to content

Commit 048e043

Browse files
poetteringkeszybz
authored andcommitted
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: systemd#18714
1 parent 67e700b commit 048e043

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/resolve/resolved-dns-answer.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -668,7 +668,7 @@ int dns_answer_copy_by_key(
668668
if (r < 0)
669669
return r;
670670

671-
r = dns_answer_add(*a, item->rr, item->ifindex, item->flags|or_flags, item->rrsig);
671+
r = dns_answer_add(*a, item->rr, item->ifindex, item->flags|or_flags, rrsig ?: item->rrsig);
672672
if (r < 0)
673673
return r;
674674
}

0 commit comments

Comments
 (0)