]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
Fix seg fault when calling SSL_shutdown() for a QUIC connection
authorMatt Caswell <matt@openssl.org>
Mon, 13 Mar 2023 14:49:24 +0000 (14:49 +0000)
committerPauli <pauli@openssl.org>
Sun, 19 Mar 2023 22:35:38 +0000 (09:35 +1100)
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/20514)

ssl/quic/quic_impl.c

index ba6a863e38fe1d9dd0f322ae8c8602ef5b1bd6d5..12099043ff79ceb8923ad6436cd8081997b6e3fa 100644 (file)
@@ -510,7 +510,7 @@ int ossl_quic_conn_shutdown(QUIC_CONNECTION *qc, uint64_t flags,
         return 1;
 
     if (blocking_mode(qc) && (flags & SSL_SHUTDOWN_FLAG_RAPID) == 0)
-        block_until_pred(qc, quic_shutdown_wait, NULL, 0);
+        block_until_pred(qc, quic_shutdown_wait, qc, 0);
     else
         ossl_quic_reactor_tick(ossl_quic_channel_get_reactor(qc->ch));