summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Faurot <eric@cvs.openbsd.org>2019-05-15 11:56:20 +0000
committerEric Faurot <eric@cvs.openbsd.org>2019-05-15 11:56:20 +0000
commit36cf036f48704ee021a2da6b27e98139b979a370 (patch)
treebed91570a2e31c184b2b940472d10043f1be109b
parent9f899dd8020275e9a3d7339dadbe6b0a2d90ee4c (diff)
do not use CRLF when passing data lines to filters.
ok gilles@
-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 1fc67d7773c..db86abdb0e0 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.389 2019/02/20 11:56:27 gilles Exp $ */
+/* $OpenBSD: smtp_session.c,v 1.390 2019/05/15 11:56:19 eric Exp $ */
/*
* Copyright (c) 2008 Gilles Chehade <gilles@poolp.org>
@@ -2685,7 +2685,7 @@ smtp_tx_filtered_dataline(struct smtp_tx *tx, const char *line)
if (tx->error)
return 0;
}
- io_printf(tx->filter, "%s\r\n", line ? line : ".");
+ io_printf(tx->filter, "%s\n", line ? line : ".");
return line ? 0 : 1;
}