mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-01-18 06:03:42 +03:00
resolved: actually check authenticated flag of SOA transaction
Fixes #25676 (cherry picked from commit 3b4cc1437b51fcc0b08da8cc3f5d1175eed25eb1) (cherry picked from commit 6da5ca9dd69c0e3340d4439413718ad4963252de) (cherry picked from commit 029272750fe451aeaac87a8c783cfb067f001e16)
This commit is contained in:
parent
ee32905903
commit
5c149c77cb
@ -2817,7 +2817,7 @@ static int dns_transaction_requires_rrsig(DnsTransaction *t, DnsResourceRecord *
|
|||||||
if (r == 0)
|
if (r == 0)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
return FLAGS_SET(t->answer_query_flags, SD_RESOLVED_AUTHENTICATED);
|
return FLAGS_SET(dt->answer_query_flags, SD_RESOLVED_AUTHENTICATED);
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
@ -2844,7 +2844,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
|
/* 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
|
* 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. */
|
* 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;
|
return true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user