]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: connection: make the debugging helper functions safer
authorWilly Tarreau <w@1wt.eu>
Thu, 25 Apr 2019 16:35:49 +0000 (18:35 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 25 Apr 2019 16:35:49 +0000 (18:35 +0200)
commit5e6a5b3a6e65bb49ee3220070f1754e9b743c600
tree95a78912ac6891c3587c515b68875ef813fd1e06
parent5e370daa52c3f0ae788a1fed8e805b4731943216
MINOR: connection: make the debugging helper functions safer

We have various functions like conn_get_ctrl_name() to retrieve
some information reported in "show sess" for debugging, which
assume that the connection is valid. This is really not convenient
in code aimed at debugging and is error-prone. Let's add a validity
test first.
include/proto/connection.h