]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
Fix up some nits
authorNeil Horman <nhorman@openssl.org>
Wed, 22 Jan 2025 19:29:19 +0000 (14:29 -0500)
committerNeil Horman <nhorman@openssl.org>
Mon, 17 Feb 2025 16:27:33 +0000 (11:27 -0500)
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Saša Nedvědický <sashan@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/26361)

include/internal/quic_port.h
ssl/quic/quic_impl.c
ssl/quic/quic_port.c

index faad3357a2d457e783b9489c8a66e9cde81862ba..6dda25db84ff15c245763459eb034892b5498f92 100644 (file)
@@ -44,7 +44,7 @@ typedef struct quic_port_args_st {
 
     /*
      * This callback allows port_new_handshake_layer to pre-create a quic
-     * connection object for the incomming channel
+     * connection object for the incoming channel
      * user_ssl_arg is expected to point to a quic listener object
      */
     SSL *(*get_conn_user_ssl)(QUIC_CHANNEL *ch, void *arg);
index cade45de441e753f9691895805e9f3bd479e3ec5..0abc13126cbb35944d9c05700a58457ceedb8633 100644 (file)
@@ -4600,7 +4600,6 @@ static QUIC_CONNECTION *create_qc_from_incoming_conn(QUIC_LISTENER *ql, QUIC_CHA
     }
 
     ossl_quic_channel_get_peer_addr(ch, &qc->init_peer_addr); /* best effort */
-    qc->listener                = NULL;
     qc->pending                 = 1;
     qc->engine                  = ql->engine;
     qc->port                    = ql->port;
index 01dfbb84ef09f9c0cdc7f4c07a13310d04b168c1..1a4e1780d07fc50a2664c9f1f287b28a99dfcde0 100644 (file)
@@ -479,7 +479,8 @@ static SSL *port_new_handshake_layer(QUIC_PORT *port, QUIC_CHANNEL *ch)
                                                   ql->obj.ssl.ctx->new_pending_conn_arg)) {
             SSL_free(tls);
             SSL_free(user_ssl);
-            qc->tls = NULL;
+            if (qc != NULL)
+                qc->tls = NULL;
             return NULL;
         }