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)
/*
* 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);
}
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;
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;
}