"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "lib/dns/rdata/generic/nxt_30.c" between
bind-9.11.22.tar.gz and bind-9.11.23.tar.gz

About: BIND 9.11 implements the Domain Name System (DNS) protocols for the Internet (see the Release Notes). ESV = Extended Supported Version. Source code distribution.

nxt_30.c  (bind-9.11.22):nxt_30.c  (bind-9.11.23)
skipping to change at line 137 skipping to change at line 137
UNUSED(type); UNUSED(type);
UNUSED(rdclass); UNUSED(rdclass);
dns_decompress_setmethods(dctx, DNS_COMPRESS_NONE); dns_decompress_setmethods(dctx, DNS_COMPRESS_NONE);
dns_name_init(&name, NULL); dns_name_init(&name, NULL);
RETERR(dns_name_fromwire(&name, source, dctx, options, target)); RETERR(dns_name_fromwire(&name, source, dctx, options, target));
isc_buffer_activeregion(source, &sr); isc_buffer_activeregion(source, &sr);
if (sr.length > 0 && (sr.base[0] & 0x80) == 0 && if (sr.length > 0 && ((sr.base[0] & 0x80) != 0 || sr.length > 16 ||
((sr.length > 16) || sr.base[sr.length - 1] == 0)) sr.base[sr.length - 1] == 0))
{
return (DNS_R_BADBITMAP); return (DNS_R_BADBITMAP);
}
RETERR(mem_tobuffer(target, sr.base, sr.length)); RETERR(mem_tobuffer(target, sr.base, sr.length));
isc_buffer_forward(source, sr.length); isc_buffer_forward(source, sr.length);
return (ISC_R_SUCCESS); return (ISC_R_SUCCESS);
} }
static inline isc_result_t static inline isc_result_t
towire_nxt(ARGS_TOWIRE) { towire_nxt(ARGS_TOWIRE) {
isc_region_t sr; isc_region_t sr;
dns_name_t name; dns_name_t name;
dns_offsets_t offsets; dns_offsets_t offsets;
 End of changes. 2 change blocks. 
2 lines changed or deleted 4 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)