diff options
author | Matt Caswell <matt@openssl.org> | 2023-09-11 13:55:41 +0100 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2023-09-13 09:45:17 +0100 |
commit | 982dae89d8d19fcb9cc2c3b8ba74afef352ecc41 (patch) | |
tree | 5164aa7e50ec9420331723e440b8d53d436a68fc /ssl/quic/quic_impl.c | |
parent | d012319145b1c95ecb9ada29f4f03a3b30cf0f41 (diff) |
Ensure QUIC-TLS errors raised during channel start are available to caller
TLS misconfiguration errors should be shown to the application to enable
diagnosis of the problem. Otherwise you just get a generical "internal
error" message.
Reviewed-by: Hugo Landau <hlandau@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/22066)
Diffstat (limited to 'ssl/quic/quic_impl.c')
-rw-r--r-- | ssl/quic/quic_impl.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ssl/quic/quic_impl.c b/ssl/quic/quic_impl.c index b632ad22db..beec26c019 100644 --- a/ssl/quic/quic_impl.c +++ b/ssl/quic/quic_impl.c @@ -1524,6 +1524,7 @@ static int ensure_channel_started(QCTX *ctx) } if (!ossl_quic_channel_start(qc->ch)) { + ossl_quic_channel_restore_err_state(qc->ch); QUIC_RAISE_NON_NORMAL_ERROR(ctx, ERR_R_INTERNAL_ERROR, "failed to start channel"); return 0; |