diff options
| author | Maxim Dounin <mdounin@mdounin.ru> | 2021-05-25 15:17:50 +0300 |
|---|---|---|
| committer | Maxim Dounin <mdounin@mdounin.ru> | 2021-05-25 15:17:50 +0300 |
| commit | ac18345675e4703efb843d06f96d596ab42c5dc5 (patch) | |
| tree | 536cba897813f2f3b19a9592a1ccda2b33b5f0e8 /docs/xml | |
| parent | d1f51296bc175a897742572dc0be824a94df3f5a (diff) | |
| download | nginx-ac18345675e4703efb843d06f96d596ab42c5dc5.tar.gz nginx-ac18345675e4703efb843d06f96d596ab42c5dc5.tar.bz2 | |
Resolver: explicit check for compression pointers in question.
Since nginx always uses exactly one entry in the question section of
a DNS query, and never uses compression pointers in this entry, parsing
of a DNS response in ngx_resolver_process_response() does not expect
compression pointers to appear in the question section of the DNS
response. Indeed, compression pointers in the first name of a DNS response
hardly make sense, do not seem to be allowed by RFC 1035 (which says
"a pointer to a prior occurance of the same name", note "prior"), and
were never observed in practice.
Added an explicit check to ngx_resolver_process_response()'s parsing
of the question section to properly report an error if compression pointers
nevertheless appear in the question section.
Diffstat (limited to 'docs/xml')
0 files changed, 0 insertions, 0 deletions
