summaryrefslogtreecommitdiffstats
path: root/lib/dns/rdataslab.c
diff options
context:
space:
mode:
authordougb <dougb@FreeBSD.org>2012-09-20 03:38:28 +0000
committerdougb <dougb@FreeBSD.org>2012-09-20 03:38:28 +0000
commitbe47cf2d63c5d79e95cc63a17f7dcefd3035e5da (patch)
treee0b5d63bc2bdd94facfed037bb4fca7399a722f8 /lib/dns/rdataslab.c
parent2fc770e93b383b38f673e86fce7b3fc5d75d63c0 (diff)
downloadFreeBSD-src-be47cf2d63c5d79e95cc63a17f7dcefd3035e5da.zip
FreeBSD-src-be47cf2d63c5d79e95cc63a17f7dcefd3035e5da.tar.gz
Vendor import of BIND 9.8.3-P3
Diffstat (limited to 'lib/dns/rdataslab.c')
-rw-r--r--lib/dns/rdataslab.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/dns/rdataslab.c b/lib/dns/rdataslab.c
index 6fbfdd7..cb9ae54 100644
--- a/lib/dns/rdataslab.c
+++ b/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
OpenPOWER on IntegriCloud