]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: dns: allow 63 char in hostname
authorWilliam Dauchy <w.dauchy@criteo.com>
Sun, 26 Jan 2020 18:52:34 +0000 (19:52 +0100)
committerWilly Tarreau <w@1wt.eu>
Tue, 28 Jan 2020 12:08:08 +0000 (13:08 +0100)
commitaecd5dcac2cd4cd87639596980c449f887b2ca26
tree2259b7bab46e488870d1bfb6fa64404e286e745a
parentbd8bf67102d061f777c3e41db206e86bbae60be7
BUG/MINOR: dns: allow 63 char in hostname

hostname were limited to 62 char, which is not RFC1035 compliant;
- the parsing loop should stop when above max label char
- fix len label test where d[i] was wrongly used
- simplify the whole function to avoid using two extra char* variable

this should fix github issue #387

Signed-off-by: William Dauchy <w.dauchy@criteo.com>
Reviewed-by: Tim Duesterhus <tim@bastelstu.be>
Acked-by: Baptiste <bedis9@gmail.com>
src/dns.c