]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: peers/cli: fix "show peers" crash
authorWilly Tarreau <w@1wt.eu>
Tue, 31 May 2022 06:49:29 +0000 (08:49 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 31 May 2022 06:49:29 +0000 (08:49 +0200)
commitccea010104235ae74c59e216c73667125e5d24ad
tree3da9fcc071e8cc999b440475102c4b22a75741eb
parent55b9689bbe524a328d08fd2b154d2405b556068d
BUG/MEDIUM: peers/cli: fix "show peers" crash

Commit d0a06d52f ("CLEANUP: applet: use applet_put*() everywhere possible")
replaced most accesses to the conn_stream with simpler accesses to the
appctx. Unfortunately, in all the CLI functions using an appctx, one
makes an exception where the appctx is not the caller's but the one being
inspected! When no peers connection is active, the early exit immediately
crashes.

No backport is needed.
src/peers.c