aboutsummaryrefslogtreecommitdiff
path: root/contrib/vim/syntax/nginx.vim
diff options
context:
space:
mode:
authorMaxim Dounin <mdounin@mdounin.ru>2021-05-25 15:17:50 +0300
committerMaxim Dounin <mdounin@mdounin.ru>2021-05-25 15:17:50 +0300
commite860ecce82f1ee9cffb228d29d3ad61375b29aff (patch)
tree2da550bde1c2ef9fe537433d37241af1e3c222e5 /contrib/vim/syntax/nginx.vim
parentf85d7016949b34119b5f4c53ddbfac4f199b4343 (diff)
downloadnginx-e860ecce82f1ee9cffb228d29d3ad61375b29aff.tar.gz
nginx-e860ecce82f1ee9cffb228d29d3ad61375b29aff.zip
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 'contrib/vim/syntax/nginx.vim')
0 files changed, 0 insertions, 0 deletions