]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: ssl/cli: fix "show ssl cert" not to mix cli+ssl contexts
authorWilly Tarreau <w@1wt.eu>
Wed, 4 May 2022 14:11:50 +0000 (16:11 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 6 May 2022 16:13:35 +0000 (18:13 +0200)
commit4fd9b4ddf04bfddaa46dd720da91c7b025f963c4
treea05ebffdfc48ae8dea2903f7fdf22171e9918d0f
parent4cf3ef8007f51e91af599e8450ab224101c79ae3
BUG/MINOR: ssl/cli: fix "show ssl cert" not to mix cli+ssl contexts

The "show ssl cert" command mixes some generic pointers from the
"ctx.cli" struct with context-specific ones from "ctx.ssl" while both
are in a union. Amazingly, despite the use of both p0 and i0 to store
respectively a pointer to the current ckchs and a transaction id, there
was no overlap with the other pointers used during these operations,
but should these fields be reordered or slightly updated this will break.
Comments were added above the faulty functions to indicate which fields
they are using.

This needs to be backported to 2.5.
include/haproxy/applet-t.h
src/ssl_ckch.c