summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorHeiko Schlittermann (HS12-RIPE) <hs@schlittermann.de>2021-05-03 15:53:28 +0200
committerHeiko Schlittermann (HS12-RIPE) <hs@schlittermann.de>2021-05-11 10:49:32 +0200
commit79aa468aad79f9f1f46efe6a1b2340e7af6fe6f7 (patch)
tree021cdecc81e51086cb33cdf4a735ebcb51be0778 /src
parent320fe6140189f08168dce2deca19821b4237e747 (diff)
Fix DANE + SNI handling (Bug 2265)
Broken in d8e99d6047e709b35eabb1395c2046100d1a1dda Thanks to JGH and Wolfgang Breyha for contributions. (cherry picked from commit e8ac8be0a3d56ba0a189fb970c339ac6e84769be)
Diffstat (limited to 'src')
-rw-r--r--src/src/transports/smtp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/src/transports/smtp.c b/src/src/transports/smtp.c
index e7e03213e..02a55f198 100644
--- a/src/src/transports/smtp.c
+++ b/src/src/transports/smtp.c
@@ -2118,7 +2118,7 @@ if (continue_hostname && continue_proxy_cipher)
{
case OK: sx->conn_args.dane = TRUE;
ob->tls_tempfail_tryclear = FALSE; /* force TLS */
- ob->tls_sni = sx->first_addr->domain; /* force SNI */
+ ob->tls_sni = sx->conn_args.host->name; /* force SNI */
break;
case FAIL_FORCED: break;
default: set_errno_nohost(sx->addrlist, ERRNO_DNSDEFER,
@@ -2205,7 +2205,7 @@ if (!continue_hostname)
{
case OK: sx->conn_args.dane = TRUE;
ob->tls_tempfail_tryclear = FALSE; /* force TLS */
- ob->tls_sni = sx->first_addr->domain; /* force SNI */
+ ob->tls_sni = sx->conn_args.host->name; /* force SNI */
break;
case FAIL_FORCED: break;
default: set_errno_nohost(sx->addrlist, ERRNO_DNSDEFER,