BUG/MINOR: dns: ignore trailing dot
authorLukas Tribus <lukas@ltri.eu>
Thu, 27 Feb 2020 14:47:24 +0000 (15:47 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 28 Feb 2020 09:26:29 +0000 (10:26 +0100)
commit81725b867c20a688c3877421383bfe1ba9348a09
tree77d7857e7c45b401aea9ee0c1d68ca6a71486807
parent1ed3781e2130a0a7c7d4b35e58990a6d30d5f538
BUG/MINOR: dns: ignore trailing dot

As per issue #435 a hostname with a trailing dot confuses our DNS code,
as for a zero length DNS label we emit a null-byte. This change makes us
ignore the zero length label instead.

Must be backported to 1.8.
src/dns.c