]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
QUIC MSST: Clarify default XSO transitions
authorHugo Landau <hlandau@openssl.org>
Tue, 2 May 2023 07:29:43 +0000 (08:29 +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_impl.c

index 18a647bfa5509179bf7e5a204f41415e1ba6a35c..0826a170d43ba2d82b0e7a4b93a9e8d0bab32b19 100644 (file)
@@ -520,7 +520,13 @@ static void qc_set_default_xso_keep_ref(QUIC_CONNECTION *qc, QUIC_XSO *xso,
              * Changing from not having a default XSO to having one. The new XSO
              * will have had a reference to the QC we need to drop to avoid a
              * circular reference.
+             *
+             * Currently we never change directly from one default XSO to
+             * another, though this function would also still be correct if this
+             * weren't the case.
              */
+            assert(*old_xso == NULL);
+
             CRYPTO_DOWN_REF(&qc->ssl.references, &refs, &qc->ssl.lock);
             assert(refs > 0);
         }