]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: buffer: fix debugging condition in b_peek_varint()
authorWilly Tarreau <w@1wt.eu>
Fri, 11 Mar 2022 15:55:49 +0000 (16:55 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 11 Mar 2022 15:59:14 +0000 (16:59 +0100)
commitf1cb4ac745994cf62bb259d117c4b7cdaf8c8dd7
tree896424d7d78331bd0404378bfdd8d37e9caf307e
parent76e8b70e43e7460a236d7228f8112be57f916a74
BUG/MINOR: buffer: fix debugging condition in b_peek_varint()

The BUG_ON_HOT() test condition added to b_peek_varint() by commit
8873b85bd ("DEBUG: buf: add BUG_ON_HOT() to most buffer management
functions") was wrong as <data> in this function is not b->data,
so that was triggering during live dumps of H2 traces on the CLI
when built with -DDEBUG_STRICT=2. No backport is needed.
include/haproxy/buf.h