From 685ac0292d2b845e61115d19cec12154db36e843 Mon Sep 17 00:00:00 2001 From: Steve Kim Date: Thu, 9 Jan 2025 10:10:33 -0800 Subject: [PATCH] clean up s_setup_tls_options_from_context --- source/darwin/nw_socket.c | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/source/darwin/nw_socket.c b/source/darwin/nw_socket.c index 945375399..4d4ca5ff1 100644 --- a/source/darwin/nw_socket.c +++ b/source/darwin/nw_socket.c @@ -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;