summaryrefslogtreecommitdiff
path: root/usr.sbin/smtpd
diff options
context:
space:
mode:
authorGilles Chehade <gilles@cvs.openbsd.org>2019-01-03 14:40:26 +0000
committerGilles Chehade <gilles@cvs.openbsd.org>2019-01-03 14:40:26 +0000
commitc95ac75e1e0d025869fe2251c010069ec4dac422 (patch)
treed0874bb84491611ec6c82af0ee2d5b83c32cab38 /usr.sbin/smtpd
parentb6fa0d6bd660dc223b65168338681e26b88e3718 (diff)
do not strip dot-escaping when sending to filters, dot-escape is removed on
return otherwise there are cases which can lead to a truncated mail. ok eric@
Diffstat (limited to 'usr.sbin/smtpd')
-rw-r--r--usr.sbin/smtpd/smtp_session.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/usr.sbin/smtpd/smtp_session.c b/usr.sbin/smtpd/smtp_session.c
index a8c0e13a46c..70ef681330b 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.383 2018/12/28 11:35:25 gilles Exp $ */
+/* $OpenBSD: smtp_session.c,v 1.384 2019/01/03 14:40:25 gilles Exp $ */
/*
* Copyright (c) 2008 Gilles Chehade <gilles@poolp.org>
@@ -2678,10 +2678,6 @@ smtp_tx_filtered_dataline(struct smtp_tx *tx, const char *line)
if (tx->error)
return 0;
- /* escape lines starting with a '.' */
- if (line[0] == '.')
- line += 1;
-
/* account for newline */
tx->datain += strlen(line) + 1;
if (tx->datain > env->sc_maxsize) {