]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
QUIC QRX: Fix a list usage bug
authorHugo Landau <hlandau@openssl.org>
Wed, 19 Apr 2023 19:11:33 +0000 (20:11 +0100)
committerHugo Landau <hlandau@openssl.org>
Fri, 12 May 2023 13:47:14 +0000 (14:47 +0100)
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/20765)

ssl/quic/quic_record_rx.c

index cf9f960c3db637230181630ef560c236dc89c114..cde8f67d224d3996688e34481d757ff43d5d672d 100644 (file)
@@ -190,6 +190,7 @@ static void qrx_cleanup_urxl(OSSL_QRX *qrx, QUIC_URXE_LIST *l)
 
     for (e = ossl_list_urxe_head(l); e != NULL; e = enext) {
         enext = ossl_list_urxe_next(e);
+        ossl_list_urxe_remove(l, e);
         ossl_quic_demux_release_urxe(qrx->demux, e);
     }
 }