mirror of
https://github.com/NLnetLabs/unbound.git
synced 2026-10-01 22:24:55 +02:00
- Fix escape more characters when printing an RR type with an unquoted
string.
This commit is contained in:
@@ -1,3 +1,7 @@
|
||||
1 April 2025: Wouter
|
||||
- Fix escape more characters when printing an RR type with an unquoted
|
||||
string.
|
||||
|
||||
31 March 2025: Wouter
|
||||
- iana portlist update.
|
||||
- Merge #1042: Fast Reload. The unbound-control fast_reload is added.
|
||||
|
||||
+2
-1
@@ -2059,7 +2059,8 @@ int sldns_wire2str_unquoted_scan(uint8_t** d, size_t* dl, char** s, size_t* sl)
|
||||
(*d)++;
|
||||
(*dl)--;
|
||||
for(i=0; i<len; i++) {
|
||||
if(isspace((unsigned char)(*d)[i]))
|
||||
if(isspace((unsigned char)(*d)[i]) || (*d)[i] == '(' ||
|
||||
(*d)[i] == ')' || (*d)[i] == '\'')
|
||||
w += sldns_str_print(s, sl, "\\%c", (char)(*d)[i]);
|
||||
else w += str_char_print(s, sl, (*d)[i]);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user