Skip to content

Commit

Permalink
check whether any tls options need to be retrieved before assigning
Browse files Browse the repository at this point in the history
  • Loading branch information
sbSteveK committed Jan 9, 2025
1 parent 685ac02 commit 869d910
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions source/channel_bootstrap.c
Original file line number Diff line number Diff line change
Expand Up @@ -665,9 +665,11 @@ static void s_on_client_connection_established(struct aws_socket *socket, int er
* where the parameters used to create the Apple Network Framework socket require TLS options. */
static void s_retrieve_client_tls_options(struct tls_connection_context *context, void *user_data) {
struct client_connection_args *connection_args = user_data;
context->host_name = connection_args->channel_data.tls_options.server_name;
context->alpn_list = connection_args->channel_data.tls_options.alpn_list;
context->tls_ctx = connection_args->channel_data.tls_options.ctx;
if (connection_args->channel_data.tls_options) {
context->host_name = connection_args->channel_data.tls_options.server_name;
context->alpn_list = connection_args->channel_data.tls_options.alpn_list;
context->tls_ctx = connection_args->channel_data.tls_options.ctx;
}
}

struct connection_task_data {
Expand Down

0 comments on commit 869d910

Please sign in to comment.