]> git.ipfire.org Git - thirdparty/haproxy.git/commit
DEBUG: fd: detect possibly invalid tgid in fd_insert()
authorWilly Tarreau <w@1wt.eu>
Mon, 25 Jul 2022 13:42:41 +0000 (15:42 +0200)
committerWilly Tarreau <w@1wt.eu>
Mon, 25 Jul 2022 13:47:45 +0000 (15:47 +0200)
commit51b1fcedebbec17fd38b8b1c1de10c7572d24ec8
treef830474f51c94b8505a65dc3b2f105f7f5b0c8b9
parent698342635491a30b219bebeb1bbe7877efdbe3b6
DEBUG: fd: detect possibly invalid tgid in fd_insert()

Since the API is still a bit young, let's make sure nobody tries to
assign and FD to a group not strictly 1..MAX_TGROUPS as that would
indicate a bug.

Note: some of these might be relaxed to BUG_ON_HOT() in the future
include/haproxy/fd.h