mirror of
https://github.com/NLnetLabs/unbound.git
synced 2026-08-17 21:25:50 +02:00
- Fix to whitespace in dname_str.
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
for the fix.
|
||||
- Fix that edns-subnet failure to create a subquery errors as
|
||||
servfail, and not formerror.
|
||||
- Fix to whitespace in dname_str.
|
||||
|
||||
6 August 2025: Wouter
|
||||
- Fix edns subnet, so that the subquery without subnet is stored in
|
||||
|
||||
+6
-6
@@ -650,11 +650,11 @@ void dname_str(uint8_t* dname, char* str)
|
||||
while(lablen) {
|
||||
len += lablen+1;
|
||||
if(len >= LDNS_MAX_DOMAINLEN) {
|
||||
if ((s-str) >= (LDNS_MAX_DOMAINLEN-1))
|
||||
s = str + LDNS_MAX_DOMAINLEN - 2;
|
||||
*s++ = '&';
|
||||
*s = 0;
|
||||
return;
|
||||
if ((s-str) >= (LDNS_MAX_DOMAINLEN-1))
|
||||
s = str + LDNS_MAX_DOMAINLEN - 2;
|
||||
*s++ = '&';
|
||||
*s = 0;
|
||||
return;
|
||||
}
|
||||
if(lablen > LDNS_MAX_LABELLEN) {
|
||||
*s++ = '#';
|
||||
@@ -666,7 +666,7 @@ void dname_str(uint8_t* dname, char* str)
|
||||
|| *dname == '-' || *dname == '_'
|
||||
|| *dname == '*')
|
||||
*s++ = *(char*)dname++;
|
||||
else {
|
||||
else {
|
||||
*s++ = '?';
|
||||
dname++;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user