mirror of
https://github.com/NLnetLabs/unbound.git
synced 2025-12-20 23:00:56 -05:00
- Fix to ensure uniform handling of spaces and tabs when parsing RRs.
This commit is contained in:
parent
b0dbfa37f9
commit
402135b41a
2 changed files with 7 additions and 2 deletions
|
|
@ -1,3 +1,6 @@
|
||||||
|
16 March 2022: Wouter
|
||||||
|
- Fix to ensure uniform handling of spaces and tabs when parsing RRs.
|
||||||
|
|
||||||
9 March 2022: Wouter
|
9 March 2022: Wouter
|
||||||
- Merge #644: Make `install-lib` make target install the pkg-config
|
- Merge #644: Make `install-lib` make target install the pkg-config
|
||||||
file.
|
file.
|
||||||
|
|
|
||||||
|
|
@ -378,7 +378,8 @@ rrinternal_get_quoted(sldns_buffer* strbuf, const char** delimiters,
|
||||||
|
|
||||||
/* skip spaces */
|
/* skip spaces */
|
||||||
while(sldns_buffer_remaining(strbuf) > 0 &&
|
while(sldns_buffer_remaining(strbuf) > 0 &&
|
||||||
*(sldns_buffer_current(strbuf)) == ' ') {
|
(*(sldns_buffer_current(strbuf)) == ' ' ||
|
||||||
|
*(sldns_buffer_current(strbuf)) == '\t')) {
|
||||||
sldns_buffer_skip(strbuf, 1);
|
sldns_buffer_skip(strbuf, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -780,7 +781,8 @@ rrinternal_parse_rdata(sldns_buffer* strbuf, char* token, size_t token_len,
|
||||||
|
|
||||||
/* unknown RR data */
|
/* unknown RR data */
|
||||||
if(token_strlen>=2 && strncmp(token, "\\#", 2) == 0 &&
|
if(token_strlen>=2 && strncmp(token, "\\#", 2) == 0 &&
|
||||||
!quoted && (token_strlen == 2 || token[2]==' ')) {
|
!quoted && (token_strlen == 2 || token[2]==' ' ||
|
||||||
|
token[2]=='\t')) {
|
||||||
was_unknown_rr_format = 1;
|
was_unknown_rr_format = 1;
|
||||||
if((status=rrinternal_parse_unknown(strbuf, token,
|
if((status=rrinternal_parse_unknown(strbuf, token,
|
||||||
token_len, rr, rr_len, &rr_cur_len,
|
token_len, rr, rr_len, &rr_cur_len,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue