"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "lib/dns/rdata/generic/x25_19.c" between
bind-9.17.4.tar.xz and bind-9.17.5.tar.xz

About: BIND 9.17 implements the Domain Name System (DNS) protocols for the Internet (see the Release Notes). Source code distribution. Unstable development release.

x25_19.c  (bind-9.17.4.tar.xz):x25_19.c  (bind-9.17.5.tar.xz)
skipping to change at line 62 skipping to change at line 62
REQUIRE(rdata->type == dns_rdatatype_x25); REQUIRE(rdata->type == dns_rdatatype_x25);
REQUIRE(rdata->length != 0); REQUIRE(rdata->length != 0);
dns_rdata_toregion(rdata, &region); dns_rdata_toregion(rdata, &region);
return (txt_totext(&region, true, target)); return (txt_totext(&region, true, target));
} }
static inline isc_result_t static inline isc_result_t
fromwire_x25(ARGS_FROMWIRE) { fromwire_x25(ARGS_FROMWIRE) {
isc_region_t sr; isc_region_t sr;
unsigned int i;
REQUIRE(type == dns_rdatatype_x25); REQUIRE(type == dns_rdatatype_x25);
UNUSED(type); UNUSED(type);
UNUSED(dctx); UNUSED(dctx);
UNUSED(rdclass); UNUSED(rdclass);
UNUSED(options); UNUSED(options);
isc_buffer_activeregion(source, &sr); isc_buffer_activeregion(source, &sr);
if (sr.length < 5) { if (sr.length < 5 || sr.base[0] != (sr.length - 1)) {
return (DNS_R_FORMERR); return (DNS_R_FORMERR);
} }
for (i = 1; i < sr.length; i++) {
if (sr.base[i] < 0x30 || sr.base[i] > 0x39) {
return (DNS_R_FORMERR);
}
}
return (txt_fromwire(source, target)); return (txt_fromwire(source, target));
} }
static inline isc_result_t static inline isc_result_t
towire_x25(ARGS_TOWIRE) { towire_x25(ARGS_TOWIRE) {
UNUSED(cctx); UNUSED(cctx);
REQUIRE(rdata->type == dns_rdatatype_x25); REQUIRE(rdata->type == dns_rdatatype_x25);
REQUIRE(rdata->length != 0); REQUIRE(rdata->length != 0);
 End of changes. 3 change blocks. 
1 lines changed or deleted 7 lines changed or added

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