]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: ssl: Fix error message after ssl_sock_load_ocsp call
authorRemi Tricot-Le Breton <rlebreton@haproxy.com>
Thu, 1 Feb 2024 10:58:14 +0000 (11:58 +0100)
committerWilliam Lallemand <wlallemand@haproxy.com>
Mon, 5 Feb 2024 14:59:16 +0000 (15:59 +0100)
commit73705ac701c6b0a8201ae29fffd9f29520a03b78
tree4bcc045fe7d37299341d348f7c98f0e571cf9740
parentbc70b385fdbc06cbb83ea0404d2836a434311380
BUG/MINOR: ssl: Fix error message after ssl_sock_load_ocsp call

If we were to enable 'ocsp-update' on a certificate that does not have
an OCSP URI, we would exit ssl_sock_load_ocsp with a negative error code
which would raise a misleading error message ("<cert> has an OCSP URI
and OCSP auto-update is set to 'on' ..."). This patch simply fixes the
error message but an error is still raised.

This issue was raised in GitHub #2432.
It can be backported up to branch 2.8.
src/ssl_sock.c