]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: ssl: Fix crash when no private key is found in pem
authorRemi Tricot-Le Breton <rlebreton@haproxy.com>
Mon, 9 May 2022 09:07:13 +0000 (11:07 +0200)
committerWilliam Lallemand <wlallemand@haproxy.org>
Tue, 17 May 2022 13:51:41 +0000 (15:51 +0200)
commit9bf3a1f67eb3bc6f02abcabf8ab141840c7a1db2
tree6a89f13ae0f3264178f95733a12feba0bbdc92f7
parent7198c700bc1881c115062d9a4019b960ab0e0b57
BUG/MINOR: ssl: Fix crash when no private key is found in pem

If no private key can be found in a bind line's certificate and
ssl-load-extra-files is set to none we end up trying to call
X509_check_private_key with a NULL key, which crashes.

This fix should be backported to all stable branches.
src/ssl_ckch.c