]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: connection: Transform safety check in PROXYv2 parsing into BUG_ON()
authorTim Duesterhus <tim@bastelstu.be>
Fri, 25 Feb 2022 20:44:27 +0000 (21:44 +0100)
committerWilly Tarreau <w@1wt.eu>
Mon, 28 Feb 2022 16:59:28 +0000 (17:59 +0100)
commit17e6b737d7ca5beda02ae9991eb51a8697ae9d4f
tree074cf8a13b1d850abcf482c16e3561bb21bbbed0
parentf09af57df5f7c45ad82a11928d89a4d766d55c3b
MINOR: connection: Transform safety check in PROXYv2 parsing into BUG_ON()

With BUG_ON() being enabled by default it is more useful to use a BUG_ON()
instead of an effectively never-taken if, as any incorrect assumptions will
become much more visible.

see 488ee7fb6 ("BUG/MAJOR: proxy_protocol: Properly validate TLV lengths")
src/connection.c