1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2024-10-26 08:55:18 +03:00

resolved: actually check authenticated flag of SOA transaction

Fixes #25676

(cherry picked from commit 3b4cc1437b)
(cherry picked from commit 6da5ca9dd6)
(cherry picked from commit 029272750f)
(cherry picked from commit 5c149c77cb)
(cherry picked from commit bb78da7f95)
(cherry picked from commit f58fc88678)
(cherry picked from commit 4ada129058)
(cherry picked from commit c8578cef7f)
This commit is contained in:
Michal Sekletar 2023-12-20 16:44:14 +01:00 committed by Luca Boccassi
parent 786df410b1
commit 3a409b2103

View File

@ -2760,7 +2760,7 @@ static int dns_transaction_requires_rrsig(DnsTransaction *t, DnsResourceRecord *
if (r == 0)
continue;
return FLAGS_SET(t->answer_query_flags, SD_RESOLVED_AUTHENTICATED);
return FLAGS_SET(dt->answer_query_flags, SD_RESOLVED_AUTHENTICATED);
}
return true;
@ -2787,7 +2787,7 @@ static int dns_transaction_requires_rrsig(DnsTransaction *t, DnsResourceRecord *
/* We found the transaction that was supposed to find the SOA RR for us. It was
* successful, but found no RR for us. This means we are not at a zone cut. In this
* case, we require authentication if the SOA lookup was authenticated too. */
return FLAGS_SET(t->answer_query_flags, SD_RESOLVED_AUTHENTICATED);
return FLAGS_SET(dt->answer_query_flags, SD_RESOLVED_AUTHENTICATED);
}
return true;