From: Vsevolod Stakhov Date: Thu, 8 Jun 2017 14:49:43 +0000 (+0100) Subject: [Minor] Use a more persistent string to set SNI hostname X-Git-Tag: 1.6.0~39 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=985bc3a2047f990624ce09aa7967618965d2c52e;p=rspamd.git [Minor] Use a more persistent string to set SNI hostname --- diff --git a/src/libutil/ssl_util.c b/src/libutil/ssl_util.c index 76fcc3a11..5b181f1bc 100644 --- a/src/libutil/ssl_util.c +++ b/src/libutil/ssl_util.c @@ -511,7 +511,7 @@ rspamd_ssl_connect_fd (struct rspamd_ssl_connection *conn, gint fd, if (hostname) { conn->hostname = g_strdup (hostname); #ifdef HAVE_SSL_TLSEXT_HOSTNAME - SSL_set_tlsext_host_name (conn->ssl, hostname); + SSL_set_tlsext_host_name (conn->ssl, conn->hostname); #endif }