summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgilles <gilles@openbsd.org>2018-03-14 22:02:51 +0000
committergilles <gilles@openbsd.org>2018-03-14 22:02:51 +0000
commit60822eb21ac7df161341dd0a05d69562669469bd (patch)
tree6496c20b29c14c15a9f36df38f77ec6071e0f6a0
parentskip spf mechanisms that have been processed already. (diff)
downloadwireguard-openbsd-60822eb21ac7df161341dd0a05d69562669469bd.tar.xz
wireguard-openbsd-60822eb21ac7df161341dd0a05d69562669469bd.zip
Message-Id header is not added if sent over submission port because the
port is stored in the listener structure using the network order. ok eric@
-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 efb8180e5bb..2a6bf812d5c 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.318 2018/03/07 21:37:14 gilles Exp $ */
+/* $OpenBSD: smtp_session.c,v 1.319 2018/03/14 22:02:51 gilles Exp $ */
/*
* Copyright (c) 2008 Gilles Chehade <gilles@poolp.org>
@@ -1159,7 +1159,7 @@ smtp_tx(struct smtp_session *s)
rfc2822_body_callback(&tx->rfc2822_parser,
dataline_callback, s);
- if (s->listener->local || s->listener->port == 587) {
+ if (s->listener->local || s->listener->port == htons(587)) {
rfc2822_missing_header_callback(&tx->rfc2822_parser, "date",
header_missing_callback, s);
rfc2822_missing_header_callback(&tx->rfc2822_parser, "message-id",