mirror of
https://github.com/NLnetLabs/unbound.git
synced 2026-01-29 01:47:32 -05:00
- Fix the dname_has_label fix
This commit is contained in:
parent
fd6456dd56
commit
72c4c6b30c
1 changed files with 2 additions and 1 deletions
|
|
@ -563,10 +563,11 @@ dname_has_label(uint8_t* dname, size_t dnamelen, uint8_t* label)
|
|||
{
|
||||
size_t len = *dname;
|
||||
while(*dname && len <= dnamelen) {
|
||||
if(*dname == *label && memlowercmp(dname, label, *dname) == 0)
|
||||
if(*dname == *label && memlowercmp(dname+1, label+1, *dname) == 0)
|
||||
return 1;
|
||||
len += *dname;
|
||||
dname += *dname;
|
||||
dname++;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue