aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/bind9/lib/dns/rdataslab.c
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/bind9/lib/dns/rdataslab.c')
-rw-r--r--contrib/bind9/lib/dns/rdataslab.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/contrib/bind9/lib/dns/rdataslab.c b/contrib/bind9/lib/dns/rdataslab.c
index 6fbfdd715c92..cb9ae5425ef9 100644
--- a/contrib/bind9/lib/dns/rdataslab.c
+++ b/contrib/bind9/lib/dns/rdataslab.c
@@ -305,6 +305,7 @@ dns_rdataslab_fromrdataset(dns_rdataset_t *rdataset, isc_mem_t *mctx,
length = x[i].rdata.length;
if (rdataset->type == dns_rdatatype_rrsig)
length++;
+ INSIST(length <= 0xffff);
*rawbuf++ = (length & 0xff00) >> 8;
*rawbuf++ = (length & 0x00ff);
#if DNS_RDATASET_FIXED