summaryrefslogtreecommitdiff
path: root/usr.sbin/smtpd/smtp_session.c
diff options
context:
space:
mode:
authorEric Faurot <eric@cvs.openbsd.org>2016-07-01 17:53:24 +0000
committerEric Faurot <eric@cvs.openbsd.org>2016-07-01 17:53:24 +0000
commitf5c7b2e8853f77734ce6474577362f313a87f0a6 (patch)
tree1d24f928d4f2a52a72faedab89a8da39c17389f8 /usr.sbin/smtpd/smtp_session.c
parentc512e63c7113e35452d567195200cc9f851099cf (diff)
flag the local socket listener as local.
clarify check for local listeners. ok gilles@ millert@
Diffstat (limited to 'usr.sbin/smtpd/smtp_session.c')
-rw-r--r--usr.sbin/smtpd/smtp_session.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/smtpd/smtp_session.c b/usr.sbin/smtpd/smtp_session.c
index 191cb1089c7..9bfcaa0187f 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.278 2016/06/29 06:46:06 eric Exp $ */
+/* $OpenBSD: smtp_session.c,v 1.279 2016/07/01 17:53:23 eric Exp $ */
/*
* Copyright (c) 2008 Gilles Chehade <gilles@poolp.org>
@@ -694,7 +694,7 @@ smtp_session(struct listener *listener, int sock,
rfc2822_body_callback(&s->tx->rfc2822_parser,
dataline_callback, s);
- if (hostname || listener->local || listener->port == 587) {
+ if (listener->local || listener->port == 587) {
rfc2822_missing_header_callback(&s->tx->rfc2822_parser, "date",
header_missing_callback, s);
rfc2822_missing_header_callback(&s->tx->rfc2822_parser, "message-id",