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)
This commit is contained in:
ihciah 2023-05-10 15:07:08 +00:00 committed by Tomas Mraz
parent be6497aa20
commit 0f06e7f5a6

View 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)