From 3835491f2b1d12240b442a7d62ae4be1edbda716 Mon Sep 17 00:00:00 2001 From: eric Date: Wed, 15 May 2019 11:56:19 +0000 Subject: [PATCH] do not use CRLF when passing data lines to filters. ok gilles@ --- usr.sbin/smtpd/smtp_session.c | 4 ++-- 1 file 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 @@ -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; } -- 2.20.1