]> git.ipfire.org Git - thirdparty/openssl.git/commit
Fix errors on SSL_accept() and SSL_get_error()
authorMatt Caswell <matt@openssl.org>
Fri, 11 Apr 2025 13:19:46 +0000 (14:19 +0100)
committerTomas Mraz <tomas@openssl.org>
Thu, 24 Apr 2025 18:10:44 +0000 (20:10 +0200)
commitcb5bb8916fa0e044e6658c8b3db6d7c672cb25fe
treefe8e22b677512d1c5e51356b9be7dea6e90d5ccd
parentfb555eb7a1d523e9df5584b44d16d0f72417bd19
Fix errors on SSL_accept() and SSL_get_error()

Calling SSL_accept() was raising two errors on the stack if you passed
the wrong object type. Similarly SSL_get_error() was adding an error to
the stack if the wrong object type was passed and returning the wrong
result.

We also ensure SSL_set_accept_state() and SSL_set_connect_state() don't
raise spurious errors since these are void functions.

Fixes #27347
Fixes #27348

Reviewed-by: Saša Nedvědický <sashan@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/27351)
include/internal/quic_ssl.h
ssl/quic/quic_impl.c
ssl/ssl_lib.c