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
14e299995f8f1dd8faeb7c5395a5a0c12b0f43f4)
static isc_result_t
towire_brid(ARGS_TOWIRE) {
REQUIRE(rdata->type == dns_rdatatype_brid);
- REQUIRE(rdata->length >= 3);
+ REQUIRE(rdata->length > 0);
UNUSED(cctx);
static isc_result_t
towire_hhit(ARGS_TOWIRE) {
REQUIRE(rdata->type == dns_rdatatype_hhit);
- REQUIRE(rdata->length >= 3);
+ REQUIRE(rdata->length > 0);
UNUSED(cctx);