Skip to content

Commit

Permalink
clean up s_setup_tls_options_from_context
Browse files Browse the repository at this point in the history
  • Loading branch information
sbSteveK committed Jan 9, 2025
1 parent ca0ab21 commit 685ac02
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions source/darwin/nw_socket.c
Original file line number Diff line number Diff line change
Expand Up @@ -1127,21 +1127,7 @@ static int s_setup_tls_options_from_context(
return AWS_OP_ERR;
}
}
}

if (tls_connection_context->host_name != NULL) {
if (nw_socket->host_name != NULL) {
aws_string_destroy(nw_socket->host_name);
nw_socket->host_name = NULL;
}
nw_socket->host_name =
aws_string_new_from_string(tls_connection_context->host_name->allocator, tls_connection_context->host_name);
if (nw_socket->host_name == NULL) {
return AWS_OP_ERR;
}
}

if (tls_connection_context->tls_ctx) {
if (nw_socket->tls_ctx) {
aws_tls_ctx_release(nw_socket->tls_ctx);
nw_socket->tls_ctx = NULL;
Expand Down

0 comments on commit 685ac02

Please sign in to comment.