diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2023-10-09 20:55:33 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2023-10-09 20:55:33 +0000 |
commit | 6101b840d9c2125a41dcc244c87d0d7902acac1a (patch) | |
tree | 074fc44f3016637edef1d2b6ece98b1e398a8d14 /usr.sbin | |
parent | de7da17fec039f65b0fc3b155126ddc13d00be16 (diff) |
Add Message-Id as needed for messages received on the submission port.
Since listener->port is in network byte order we need to compare
against htons(587). The fix for this got dropped in the rewrite
in revision 1.335.
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/smtpd/smtp_session.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/smtpd/smtp_session.c b/usr.sbin/smtpd/smtp_session.c index 470b86b48d5..ca21c5b86d4 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.435 2023/06/23 18:32:28 op Exp $ */ +/* $OpenBSD: smtp_session.c,v 1.436 2023/10/09 20:55:32 millert Exp $ */ /* * Copyright (c) 2008 Gilles Chehade <gilles@poolp.org> @@ -2624,7 +2624,7 @@ smtp_tx_dataline(struct smtp_tx *tx, const char *line) case RFC5322_END_OF_HEADERS: if (tx->session->listener->local || - tx->session->listener->port == 587) { + tx->session->listener->port == htons(587)) { if (!tx->has_date) { log_debug("debug: %p: adding Date", tx); |