commit | b17b884870e4a934f05f804c08dfaf8d7b54ed35 | [log] [tgz] |
---|---|---|
author | Olivier Houchard <cognet@ci0.org> | Wed Apr 01 18:30:27 2020 +0200 |
committer | Olivier Houchard <cognet@ci0.org> | Wed Apr 01 18:35:05 2020 +0200 |
tree | b5cd6068ee8dc1d1ffd791711e2ecaea2167270f | |
parent | 5e8017d53cea6a56c5e000e2daff3cca326b1f5d [diff] |
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.