mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-09-01 15:05:23 +00:00
fix loop termination bug
This commit is contained in:
@@ -2969,8 +2969,9 @@ dns_name_splitatdepth(dns_name_t *name, unsigned int depth,
|
|||||||
|
|
||||||
suffixlabels = 0;
|
suffixlabels = 0;
|
||||||
nbits = 0;
|
nbits = 0;
|
||||||
label = name->labels - 1;
|
label = name->labels;
|
||||||
do {
|
do {
|
||||||
|
label--;
|
||||||
ndata = &name->ndata[offsets[label]];
|
ndata = &name->ndata[offsets[label]];
|
||||||
count = *ndata++;
|
count = *ndata++;
|
||||||
if (count > 63) {
|
if (count > 63) {
|
||||||
@@ -2999,7 +3000,6 @@ dns_name_splitatdepth(dns_name_t *name, unsigned int depth,
|
|||||||
suffixlabels++;
|
suffixlabels++;
|
||||||
depth--;
|
depth--;
|
||||||
}
|
}
|
||||||
label--;
|
|
||||||
} while (depth != 0 && label != 0);
|
} while (depth != 0 && label != 0);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Reference in New Issue
Block a user