]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
QUIC APL: Fix bug around default XSO handling on server side
authorHugo Landau <hlandau@openssl.org>
Mon, 5 Feb 2024 17:22:53 +0000 (17:22 +0000)
committerViktor Dukhovni <openssl-users@dukhovni.org>
Wed, 11 Sep 2024 08:00:08 +0000 (18:00 +1000)
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Neil Horman <nhorman@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/23334)

ssl/quic/quic_impl.c

index 65cf97947405e09d5c75fbf8f393eb32b81be550..6138dfdf24359c30772bed38bc8225cd9f95f3bf 100644 (file)
@@ -291,7 +291,7 @@ static int ossl_unused expect_quic_with_stream_lock(const SSL *s, int remote_ini
             /* ossl_quic_do_handshake raised error here */
             goto err;
 
-        if (remote_init == 0) {
+        if (remote_init == ctx->qc->as_server) {
             if (!qc_try_create_default_xso_for_write(ctx))
                 goto err;
         } else {