aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHugo Landau <hlandau@openssl.org>2023-12-18 07:30:02 +0000
committerHugo Landau <hlandau@openssl.org>2023-12-21 08:12:06 +0000
commit33ca07637246c832b91d60935a1a2fdf02653a02 (patch)
tree2b8b41c665a8c439de346e11a11f1b5799fc6d9b
parentb71046b4a4eab5239e656138faf50f9022227729 (diff)
downloadopenssl-33ca07637246c832b91d60935a1a2fdf02653a02.tar.gz
Minor fixes
Reviewed-by: Tomas Mraz <tomas@openssl.org> Reviewed-by: Matt Caswell <matt@openssl.org> (Merged from https://github.com/openssl/openssl/pull/22674)
-rw-r--r--include/internal/quic_port.h5
-rw-r--r--ssl/quic/quic_port.c7
2 files changed, 6 insertions, 6 deletions
diff --git a/include/internal/quic_port.h b/include/internal/quic_port.h
index 81811b0110..bcb578c3f8 100644
--- a/include/internal/quic_port.h
+++ b/include/internal/quic_port.h
@@ -70,8 +70,9 @@ void ossl_quic_port_free(QUIC_PORT *port);
QUIC_CHANNEL *ossl_quic_port_create_outgoing(QUIC_PORT *port, SSL *tls);
/*
- * Create an incoming channel using this port. XXX for temporary TSERVER use
- * only - will be removed.
+ * Create an incoming channel using this port.
+ *
+ * TODO(QUIC SERVER): temporary TSERVER use only - will be removed.
*/
QUIC_CHANNEL *ossl_quic_port_create_incoming(QUIC_PORT *port, SSL *tls);
diff --git a/ssl/quic/quic_port.c b/ssl/quic/quic_port.c
index b4e2deeb84..9976862138 100644
--- a/ssl/quic/quic_port.c
+++ b/ssl/quic/quic_port.c
@@ -90,10 +90,9 @@ static int port_init(QUIC_PORT *port)
port->rx_short_dcid_len = (unsigned char)rx_short_dcid_len;
port->tx_init_dcid_len = INIT_DCID_LEN;
port->state = QUIC_PORT_STATE_RUNNING;
- if (port->engine != NULL) {
- ossl_list_port_insert_tail(&port->engine->port_list, port);
- port->on_engine_list = 1;
- }
+
+ ossl_list_port_insert_tail(&port->engine->port_list, port);
+ port->on_engine_list = 1;
return 1;
err: