summaryrefslogtreecommitdiff
path: root/usr.sbin/smtpd
diff options
context:
space:
mode:
authorEric Faurot <eric@cvs.openbsd.org>2021-03-07 20:56:42 +0000
committerEric Faurot <eric@cvs.openbsd.org>2021-03-07 20:56:42 +0000
commit20d2551b0eefe063c627f168fbf40e3b16b585ed (patch)
tree87201e6687eeb9ad0ba47e639a0decf2782f1a0c /usr.sbin/smtpd
parent02f19644c7414a0660bb0b1e4845de4e412dc823 (diff)
use the mx hostname for sni on outgoing connection, not the reverse
dns for the peer address. spotted by krw@ ok krw@ tb@
Diffstat (limited to 'usr.sbin/smtpd')
-rw-r--r--usr.sbin/smtpd/mta_session.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/smtpd/mta_session.c b/usr.sbin/smtpd/mta_session.c
index 2445378af72..16f947d6ca6 100644
--- a/usr.sbin/smtpd/mta_session.c
+++ b/usr.sbin/smtpd/mta_session.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mta_session.c,v 1.139 2021/03/05 12:37:32 eric Exp $ */
+/* $OpenBSD: mta_session.c,v 1.140 2021/03/07 20:56:41 eric Exp $ */
/*
* Copyright (c) 2008 Pierre-Yves Ritschard <pyr@openbsd.org>
@@ -1596,7 +1596,7 @@ mta_tls_init(struct mta_session *s)
return;
}
- io_connect_tls(s->io, tls, s->route->dst->ptrname);
+ io_connect_tls(s->io, tls, s->mxname);
}
static void