]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: dns: Consider the fact that dns answers are case-insensitive
authorOlivier Houchard <cognet@ci0.org>
Wed, 1 Apr 2020 16:30:27 +0000 (18:30 +0200)
committerOlivier Houchard <cognet@ci0.org>
Wed, 1 Apr 2020 16:35:05 +0000 (18:35 +0200)
commitb17b884870e4a934f05f804c08dfaf8d7b54ed35
treeb5cd6068ee8dc1d1ffd791711e2ecaea2167270f
parent5e8017d53cea6a56c5e000e2daff3cca326b1f5d
BUG/MEDIUM: dns: Consider the fact that dns answers are case-insensitive

We can't expect the DNS answer to always match the case we used for the
request, so we can't just use memcmp() to compare the DNS answer with what
we are expected.
Instead, introduce dns_hostname_cmp(), which compares each string in a
case-insensitive way.
This should fix github issue #566.

This should be backported to 2.1, 2.0, 1.9 and 1.8.
src/dns.c