]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: acme: avoid a possible crash on error paths master
authorWilly Tarreau <w@1wt.eu>
Fri, 7 Nov 2025 21:27:25 +0000 (22:27 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 7 Nov 2025 21:27:25 +0000 (22:27 +0100)
commit5574163073e08be8bd7841baab329a928f6f2495
treee321f3150089a03e9f999eb47415724a63ea6eda
parentfb8edd0ce69e98e3c9a08e6546edceef1cc4a7f6
BUG/MINOR: acme: avoid a possible crash on error paths

In acme_EVP_PKEY_gen(), an error message is printed if *errmsg is set,
however, since commit 546c67d13 ("MINOR: acme: generate a temporary key
pair"), errmsg is passed as NULL in at least one occurrence, leading
the compiler to issue a NULL deref warning at -O3. And indeed, if the
errors are encountered, a crash will occur. No backport is needed.
src/acme.c