mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-31 06:25:31 +00:00
[master] fix tsig class checks
4171. [bug] Fixed incorrect class checks in TSIG RR implementation. [RT #40287]
This commit is contained in:
3
CHANGES
3
CHANGES
@@ -1,3 +1,6 @@
|
|||||||
|
4171. [bug] Fixed incorrect class checks in TSIG RR
|
||||||
|
implementation. [RT #40287]
|
||||||
|
|
||||||
4170. [security] An incorrect boundary check in the OPENPGPKEY
|
4170. [security] An incorrect boundary check in the OPENPGPKEY
|
||||||
rdatatype could trigger an assertion failure.
|
rdatatype could trigger an assertion failure.
|
||||||
[RT #40286]
|
[RT #40286]
|
||||||
|
@@ -529,8 +529,8 @@ freestruct_any_tsig(ARGS_FREESTRUCT) {
|
|||||||
dns_rdata_any_tsig_t *tsig = (dns_rdata_any_tsig_t *) source;
|
dns_rdata_any_tsig_t *tsig = (dns_rdata_any_tsig_t *) source;
|
||||||
|
|
||||||
REQUIRE(source != NULL);
|
REQUIRE(source != NULL);
|
||||||
REQUIRE(tsig->common.rdclass == 255);
|
|
||||||
REQUIRE(tsig->common.rdtype == 250);
|
REQUIRE(tsig->common.rdtype == 250);
|
||||||
|
REQUIRE(tsig->common.rdclass == 255);
|
||||||
|
|
||||||
if (tsig->mctx == NULL)
|
if (tsig->mctx == NULL)
|
||||||
return;
|
return;
|
||||||
@@ -586,7 +586,7 @@ static inline isc_boolean_t
|
|||||||
checknames_any_tsig(ARGS_CHECKNAMES) {
|
checknames_any_tsig(ARGS_CHECKNAMES) {
|
||||||
|
|
||||||
REQUIRE(rdata->type == 250);
|
REQUIRE(rdata->type == 250);
|
||||||
REQUIRE(rdata->rdclass == 250);
|
REQUIRE(rdata->rdclass == 255);
|
||||||
|
|
||||||
UNUSED(rdata);
|
UNUSED(rdata);
|
||||||
UNUSED(owner);
|
UNUSED(owner);
|
||||||
|
Reference in New Issue
Block a user