mirror of
https://github.com/NLnetLabs/unbound.git
synced 2026-10-01 06:04:55 +02:00
Fix the dname_str method to cause conversion errors when the domain name length is 255
This commit is contained in:
+1
-1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user