summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoreric <eric@openbsd.org>2016-07-01 19:52:31 +0000
committereric <eric@openbsd.org>2016-07-01 19:52:31 +0000
commit249dbdc5cb7b142197ca0015002a8e6adbe12597 (patch)
treea4f24198dd211bef35012a3af3084ba2a6588018
parentMake accepted sockets inherit IP_TTL from the listening socket. (diff)
downloadwireguard-openbsd-249dbdc5cb7b142197ca0015002a8e6adbe12597.tar.xz
wireguard-openbsd-249dbdc5cb7b142197ca0015002a8e6adbe12597.zip
always refer to the helo string stored on the session
ok gilles@
-rw-r--r--usr.sbin/smtpd/smtp_session.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/smtpd/smtp_session.c b/usr.sbin/smtpd/smtp_session.c
index 9bfcaa0187f..9c20d35c6a3 100644
--- a/usr.sbin/smtpd/smtp_session.c
+++ b/usr.sbin/smtpd/smtp_session.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: smtp_session.c,v 1.279 2016/07/01 17:53:23 eric Exp $ */
+/* $OpenBSD: smtp_session.c,v 1.280 2016/07/01 19:52:31 eric Exp $ */
/*
* Copyright (c) 2008 Gilles Chehade <gilles@poolp.org>
@@ -1098,7 +1098,7 @@ smtp_filter_response(uint64_t id, int query, int status, uint32_t code,
smtp_reply(s, "250%c%s Hello %s [%s], pleased to meet you",
(s->flags & SF_EHLO) ? '-' : ' ',
s->smtpname,
- s->tx->evp.helo,
+ s->helo,
ss_to_text(&s->ss));
if (s->flags & SF_EHLO) {
@@ -1214,7 +1214,7 @@ smtp_filter_fd(uint64_t id, int fd)
iobuf_fqueue(&s->tx->obuf, "Received: ");
if (!(s->listener->flags & F_MASK_SOURCE)) {
iobuf_fqueue(&s->tx->obuf, "from %s (%s [%s])",
- s->tx->evp.helo,
+ s->helo,
s->hostname,
ss_to_text(&s->ss));
}