2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-30 22:15:20 +00:00

fix loop termination bug

This commit is contained in:
Bob Halley
2000-02-26 00:28:46 +00:00
parent cfab2f4e03
commit 3dbea10f98

View File

@@ -2969,8 +2969,9 @@ dns_name_splitatdepth(dns_name_t *name, unsigned int depth,
suffixlabels = 0;
nbits = 0;
label = name->labels - 1;
label = name->labels;
do {
label--;
ndata = &name->ndata[offsets[label]];
count = *ndata++;
if (count > 63) {
@@ -2999,7 +3000,6 @@ dns_name_splitatdepth(dns_name_t *name, unsigned int depth,
suffixlabels++;
depth--;
}
label--;
} while (depth != 0 && label != 0);
/*