BUG/MINOR: ssl/cli: fix "show ssl crl-file" not to mix cli+ssl contexts
authorWilly Tarreau <w@1wt.eu>
Wed, 4 May 2022 14:01:24 +0000 (16:01 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 6 May 2022 16:13:35 +0000 (18:13 +0200)
commit4cf3ef8007f51e91af599e8450ab224101c79ae3
tree37b11e2af859dcca05f1bff1ceeb014bf3d1a4f5
parent06305798f7afb6f436b56373770bcee5d577b83a
BUG/MINOR: ssl/cli: fix "show ssl crl-file" not to mix cli+ssl contexts

The "show ssl crl-file" command mixes some generic pointers from the
"ctx.cli" struct with context-specific ones from "ctx.ssl" while both
are in a union. It's fortunate that the p1 pointer in use is located
before the first one used (it overlaps with old_cafile_entry). But
should these fields be reordered or slightly updated this will break.

This needs to be backported to 2.5.
src/ssl_ckch.c