summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoreric <eric@openbsd.org>2019-05-15 11:56:19 +0000
committereric <eric@openbsd.org>2019-05-15 11:56:19 +0000
commit3835491f2b1d12240b442a7d62ae4be1edbda716 (patch)
tree299a81c3a3ec579cfe50f036197d1e48d95110a5
parentAdd the -m flag to the ftp.1 man page. (diff)
downloadwireguard-openbsd-3835491f2b1d12240b442a7d62ae4be1edbda716.tar.xz
wireguard-openbsd-3835491f2b1d12240b442a7d62ae4be1edbda716.zip
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;
}