From: eric Date: Sun, 7 Mar 2021 20:56:41 +0000 (+0000) Subject: use the mx hostname for sni on outgoing connection, not the reverse X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=4a621ffcccfcf56c22afebf0b2b34e38a0260457;p=openbsd use the mx hostname for sni on outgoing connection, not the reverse dns for the peer address. spotted by krw@ ok krw@ tb@ --- 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 @@ -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