mirror of
https://github.com/isc-projects/bind9.git
synced 2026-05-28 04:34:54 -04:00
Fix incorrect length checks for BRID and HHIT records
Fix incorrect length checks in the towire_*() methods for BRID and HHIT
records to prevent assertion failures when trying to serve short
records.
(cherry picked from commit 14e299995f)
This commit is contained in:
parent
9772f988ec
commit
291d05be34
2 changed files with 2 additions and 2 deletions
|
|
@ -85,7 +85,7 @@ fromwire_brid(ARGS_FROMWIRE) {
|
|||
static isc_result_t
|
||||
towire_brid(ARGS_TOWIRE) {
|
||||
REQUIRE(rdata->type == dns_rdatatype_brid);
|
||||
REQUIRE(rdata->length >= 3);
|
||||
REQUIRE(rdata->length > 0);
|
||||
|
||||
UNUSED(cctx);
|
||||
|
||||
|
|
|
|||
|
|
@ -85,7 +85,7 @@ fromwire_hhit(ARGS_FROMWIRE) {
|
|||
static isc_result_t
|
||||
towire_hhit(ARGS_TOWIRE) {
|
||||
REQUIRE(rdata->type == dns_rdatatype_hhit);
|
||||
REQUIRE(rdata->length >= 3);
|
||||
REQUIRE(rdata->length > 0);
|
||||
|
||||
UNUSED(cctx);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue