]> git.kaiwu.me - haproxy.git/commit
BUG/MINOR: ssl/ocsp: Report an error when an empty OCSP response is received
authorChristopher Faulet <cfaulet@haproxy.com>
Wed, 16 Sep 2026 07:42:35 +0000 (09:42 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 18 Sep 2026 14:50:31 +0000 (16:50 +0200)
commitf0284bea9b2688388926b54ad95e555a17977a3e
treef57f22942b84b917b8e2e49693d74099ceec24f2
parentefa9284bfb750be394937bd15cd9de564e97e31c
BUG/MINOR: ssl/ocsp: Report an error when an empty OCSP response is received

When the response of the OCSP update request has no payload, no OCSP
response is loaded but a successful update is reported anyway. The number of
successes is incremented, the last update date is refreshed and the entry is
reinserted in the update tree with the regular delay, as if everything was
fine.

The "Content-Type" header of the response is already checked to be
"application/ocsp-response". So an empty payload is an error. It is now
reported as an OCSP response check failure.

This patch depends on:

  * "MINOR: ssl/ocsp: Remove the useless res_payload callback of the http-client".

It may be backported with it if needed.
src/ssl_ocsp.c