Plug leak of BIO in tls13_quic_init()
authortb <tb@openbsd.org>
Tue, 30 Aug 2022 18:23:40 +0000 (18:23 +0000)
committertb <tb@openbsd.org>
Tue, 30 Aug 2022 18:23:40 +0000 (18:23 +0000)
commit2b36837771e0e0ba37141c12e5b918e98b0b655e
tree79d823dde3a9ba02e05606dfb245dafe27e3fe62
parent268af9278fca58c1c1d4d9a2e99e521323e5de40
Plug leak of BIO in tls13_quic_init()

If rbio and wbio are the same, SSL_free() only frees one BIO, so the
BIO_up_ref() before SSL_set_bio() leads to a leak.

ok jsing
lib/libssl/tls13_quic.c