"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "lib/dns/rdata/in_1/a6_38.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.

a6_38.c  (bind-9.11.22):a6_38.c  (bind-9.11.23)
skipping to change at line 175 skipping to change at line 175
isc_buffer_forward(source, 1); isc_buffer_forward(source, 1);
/* /*
* Suffix. * Suffix.
*/ */
if (prefixlen != 128) { if (prefixlen != 128) {
octets = 16 - prefixlen / 8; octets = 16 - prefixlen / 8;
if (sr.length < octets) if (sr.length < octets)
return (ISC_R_UNEXPECTEDEND); return (ISC_R_UNEXPECTEDEND);
mask = 0xff >> (prefixlen % 8); mask = 0xff >> (prefixlen % 8);
sr.base[0] &= mask; /* Ensure pad bits are zero. */ if ((sr.base[0] & ~mask) != 0) {
return (DNS_R_FORMERR);
}
RETERR(mem_tobuffer(target, sr.base, octets)); RETERR(mem_tobuffer(target, sr.base, octets));
isc_buffer_forward(source, octets); isc_buffer_forward(source, octets);
} }
if (prefixlen == 0) if (prefixlen == 0)
return (ISC_R_SUCCESS); return (ISC_R_SUCCESS);
dns_name_init(&name, NULL); dns_name_init(&name, NULL);
return (dns_name_fromwire(&name, source, dctx, options, target)); return (dns_name_fromwire(&name, source, dctx, options, target));
} }
 End of changes. 1 change blocks. 
1 lines changed or deleted 3 lines changed or added

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