]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: tcp-rules: check that the listener exists before updating its counters
authorWilly Tarreau <w@1wt.eu>
Thu, 22 Dec 2016 17:14:41 +0000 (18:14 +0100)
committerWilly Tarreau <w@1wt.eu>
Thu, 22 Dec 2016 22:26:37 +0000 (23:26 +0100)
commita12dde04e00330e309aefe7822b8429eb2843944
tree56e09cbb12f90e67425f6db1982ae4f8f53ee413
parent0ff98a4758a511f573e50175992984dc5a3db050
MINOR: tcp-rules: check that the listener exists before updating its counters

The tcp rules may be applied to a TCP stream initiated by applets (spoe,
lua, peers, later H2). These ones do not necessarily have a valid listener
so we must verify the field is not null before updating the stats. For now
there's no way to trigger this bug because lua and peers don't have analysers,
h2 is not implemented and spoe has a dummy listener. But this threatens to
break at any instant.
src/tcp_rules.c