]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: dns: proper domain name validation when receiving DNS response
authorBaptiste Assmann <bedis9@gmail.com>
Sun, 17 Apr 2016 20:43:26 +0000 (22:43 +0200)
committerWilly Tarreau <w@1wt.eu>
Mon, 12 Sep 2016 18:01:59 +0000 (20:01 +0200)
commit3cf7f98782daba2e22002cc332a641547f69a5cb
tree59ef96fde5ef28edc4c85b6f855190a3c527ea05
parent65ce3f5ee4f010c2fba1126d2315629eacb6568e
MINOR: dns: proper domain name validation when receiving DNS response

The analyse of CNAME resolution and request's domain name was performed
twice:
- when validating the response buffer
- when loading the right IP address from the response

Now DNS response are properly loaded into a DNS response structure, we
do the domain name validation when loading/validating the response in
the DNS strcucture and later processing of this task is now useless.

backport: no
src/dns.c