summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorihciah <ihciah@gmail.com>2023-05-10 15:07:08 +0000
committerTomas Mraz <tomas@openssl.org>2023-05-11 19:43:59 +0200
commit0f06e7f5a6a7451a6cbf4eb0d86ebc9bbd95c55b (patch)
treedd357312220c1598e8513e636a66bc9ac01f33a8
parentbe6497aa208948c960a28363bac98a429677bd9d (diff)
downloadopenssl-new-0f06e7f5a6a7451a6cbf4eb0d86ebc9bbd95c55b.tar.gz
fix SSL_get_wbio may return rbio on quic
CLA: trivial Reviewed-by: Hugo Landau <hlandau@openssl.org> Reviewed-by: Paul Dale <pauli@openssl.org> Reviewed-by: Tomas Mraz <tomas@openssl.org> (Merged from https://github.com/openssl/openssl/pull/20930)
-rw-r--r--ssl/ssl_lib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ssl/ssl_lib.c b/ssl/ssl_lib.c
index 9b54357630..ed70023bcd 100644
--- a/ssl/ssl_lib.c
+++ b/ssl/ssl_lib.c
@@ -1598,7 +1598,7 @@ BIO *SSL_get_wbio(const SSL *s)
const QUIC_CONNECTION *qc = QUIC_CONNECTION_FROM_CONST_SSL(s);
if (qc != NULL)
- return ossl_quic_conn_get_net_rbio(qc);
+ return ossl_quic_conn_get_net_wbio(qc);
#endif
if (sc == NULL)