BUG/MINOR: resolvers: do not reject host names of length 255 in SRV records
authorWilly Tarreau <w@1wt.eu>
Thu, 14 Oct 2021 06:00:38 +0000 (08:00 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 14 Oct 2021 19:24:18 +0000 (21:24 +0200)
commit85c15e6bff92c2dae609d76f72c1d231d048dd74
tree5654054a2313f8677e3e31e395b4badb1cbdd226
parent947ae125cc3a00c05a5356de177b732fdc55aab5
BUG/MINOR: resolvers: do not reject host names of length 255 in SRV records

An off-by-one issue in buffer size calculation used to limit the output
of resolv_dn_label_to_str() to 254 instead of 255.

This must be backported to 2.0.
src/resolvers.c