From 854010bc34484a22f5e97ed21ea76e76cde6a9ca Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Tue, 11 Jun 2024 18:46:30 +0200 Subject: Merging upstream version 1.62.1. Signed-off-by: Daniel Baumann --- src/shrpx_memcached_connection.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/shrpx_memcached_connection.cc') diff --git a/src/shrpx_memcached_connection.cc b/src/shrpx_memcached_connection.cc index f72cb11..472df43 100644 --- a/src/shrpx_memcached_connection.cc +++ b/src/shrpx_memcached_connection.cc @@ -182,8 +182,8 @@ int MemcachedConnection::initiate_connection() { } if (ssl_ctx_) { - if (!util::numeric_host(sni_name_.c_str())) { - SSL_set_tlsext_host_name(conn_.tls.ssl, sni_name_.c_str()); + if (!util::numeric_host(sni_name_.data())) { + SSL_set_tlsext_host_name(conn_.tls.ssl, sni_name_.data()); } auto session = tls::reuse_tls_session(tls_session_cache_); -- cgit v1.2.3