mirror of
https://github.com/NLnetLabs/unbound.git
synced 2026-01-06 06:49:35 -05:00
Fix the dname_str method to cause conversion errors when the domain name length is 255
This commit is contained in:
parent
9e3c50ec9e
commit
06fb30d0a0
1 changed files with 1 additions and 1 deletions
|
|
@ -654,7 +654,7 @@ void dname_str(uint8_t* dname, char* str)
|
|||
return;
|
||||
}
|
||||
len += lablen+1;
|
||||
if(len >= LDNS_MAX_DOMAINLEN-1) {
|
||||
if(len >= LDNS_MAX_DOMAINLEN) {
|
||||
*s++ = '&';
|
||||
*s = 0;
|
||||
return;
|
||||
|
|
|
|||
Loading…
Reference in a new issue