]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: debug: fix "show fd" null-deref when built with DEBUG_FD
authorWilly Tarreau <w@1wt.eu>
Mon, 29 Jun 2020 12:23:31 +0000 (14:23 +0200)
committerWilly Tarreau <w@1wt.eu>
Mon, 29 Jun 2020 12:26:05 +0000 (14:26 +0200)
commit13c1a01de6aa71acdaa831ae2f018439b58fc42c
treeb520d34f23f786d387836494ac24cda729470dcd
parent20dc3cd4a60d7b1895d8cca954a00da71b1dca3e
BUG/MINOR: debug: fix "show fd" null-deref when built with DEBUG_FD

DEBUG_FD was added by commit 38e8a1c in 2.2-dev, and "show fd" was
slightly modified to still allow to print orphaned/closed FDs if their
count is non-null. But bypassing the existing test made it possible
to dereference fdt.owner which can be null. Let's adjust the condition
to avoid this.

No backport is needed.
src/cli.c