fix SSL_get_wbio may return rbio on quic
authorihciah <ihciah@gmail.com>
Wed, 10 May 2023 15:07:08 +0000 (15:07 +0000)
committerTomas Mraz <tomas@openssl.org>
Thu, 11 May 2023 17:43:59 +0000 (19:43 +0200)
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)

ssl/ssl_lib.c

index 9b54357630266a023c427d6447c76c975ed91cd4..ed70023bcdc6efb95df26906c3415e4fef05b1a5 100644 (file)
@@ -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)