]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: jwt: Clear SSL error queue on error when checking the signature
authorChristopher Faulet <cfaulet@haproxy.com>
Fri, 26 Jul 2024 14:47:15 +0000 (16:47 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 26 Jul 2024 14:59:00 +0000 (16:59 +0200)
commit46b1fec0e9a6afe2c12fd4dff7c8a0d788aa6dd4
tree49b047c287ec512ed797a2aac36a178386de87a8
parent4abaadd842de23e25938e32add86ab37d8f67e24
BUG/MEDIUM: jwt: Clear SSL error queue on error when checking the signature

When the signature included in a JWT is verified, if an error occurred, one
or more SSL errors are queued and never cleared. These errors may be then
caught by the SSL stack and a fatal SSL error may be erroneously reported
during a SSL received or send.

So we must take care to clear the SSL error queue when the signature
verification failed.

This patch should fix issue #2643. It must be backported as far as 2.6.
src/jwt.c