From: eric Date: Wed, 15 May 2019 11:56:19 +0000 (+0000) Subject: do not use CRLF when passing data lines to filters. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=3835491f2b1d12240b442a7d62ae4be1edbda716;p=openbsd do not use CRLF when passing data lines to filters. ok gilles@ --- 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 @@ -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; }