]> git.ipfire.org Git - thirdparty/bind9.git/commit
519. [bug] dns_name_split() would improperly split some bitstring
authorDavid Lawrence <source@isc.org>
Sat, 14 Oct 2000 04:31:31 +0000 (04:31 +0000)
committerDavid Lawrence <source@isc.org>
Sat, 14 Oct 2000 04:31:31 +0000 (04:31 +0000)
commit190fbe9738bd0c1b9b13732bb8bd56b2b7c71640
tree5bd86cc304736f945c59fd5eb96bede33287810e
parent1417088e3c87e88ae7603a049ac9dddb5e548215
 519. [bug] dns_name_split() would improperly split some bitstring
labels, zeroing a few of the least signficant bits in
the prefix part.  When such an improperly created
prefix was returned to the RBT database, the bogus
label was dutifully stored, corrupting the tree.
[RT #369]

Also made dns_name_split() REQUIRE that suffixlabels always be greater than 0,
even when splitting a bitstring label (it already required this when not
splitting a bitstring label).  This is consistent with the way dns_name_split()
was called to split a name that consisted of a single label, a bitstring;
the appropriate suffixlabels value is 1 in such cases.

Also a fixed minor style error, and a confusing comment.
CHANGES
lib/dns/name.c