BUG/MINOR: dns: ignore trailing dot
authorLukas Tribus <lukas@ltri.eu>
Thu, 27 Feb 2020 14:47:24 +0000 (15:47 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 28 Feb 2020 10:11:57 +0000 (11:11 +0100)
commitb78784583d9661972d8e72a652309ef2f724e5c8
tree4aff414b5cd5df05742e80b73aa3c29a3c736989
parente6cd345cef8e08d4cc8e11a6419bb2b18b93f93c
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.

(cherry picked from commit 81725b867c20a688c3877421383bfe1ba9348a09)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
src/dns.c