mirror of
https://github.com/isc-projects/bind9.git
synced 2026-04-15 22:09:31 -04:00
fix loop termination bug
This commit is contained in:
parent
cfab2f4e03
commit
3dbea10f98
1 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||
|
||||
/*
|
||||
|
|
|
|||
Loading…
Reference in a new issue