diff options
author | dougb <dougb@FreeBSD.org> | 2012-09-20 03:38:28 +0000 |
---|---|---|
committer | dougb <dougb@FreeBSD.org> | 2012-09-20 03:38:28 +0000 |
commit | be47cf2d63c5d79e95cc63a17f7dcefd3035e5da (patch) | |
tree | e0b5d63bc2bdd94facfed037bb4fca7399a722f8 /lib/dns/rdataslab.c | |
parent | 2fc770e93b383b38f673e86fce7b3fc5d75d63c0 (diff) | |
download | FreeBSD-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.c | 1 |
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 |