diff options
author | Gilles Chehade <gilles@cvs.openbsd.org> | 2009-08-06 16:26:40 +0000 |
---|---|---|
committer | Gilles Chehade <gilles@cvs.openbsd.org> | 2009-08-06 16:26:40 +0000 |
commit | ccadcb0a7561d6a31cd1088810145739909b96a1 (patch) | |
tree | e9fc53479c7ced5c0c25c70a149f3aadf3fa4fbe /usr.sbin/smtpd/bounce.c | |
parent | 6e7e8975626fe603529c0e60cefa188eeb5c890e (diff) |
when writing a bounce, follow the same rule as for mta sessions and prepend
with a dot lines starting with a dot
Diffstat (limited to 'usr.sbin/smtpd/bounce.c')
-rw-r--r-- | usr.sbin/smtpd/bounce.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/usr.sbin/smtpd/bounce.c b/usr.sbin/smtpd/bounce.c index add6d442087..fe6e74f6ce2 100644 --- a/usr.sbin/smtpd/bounce.c +++ b/usr.sbin/smtpd/bounce.c @@ -1,4 +1,4 @@ -/* $OpenBSD: bounce.c,v 1.4 2009/08/06 14:27:41 gilles Exp $ */ +/* $OpenBSD: bounce.c,v 1.5 2009/08/06 16:26:39 gilles Exp $ */ /* * Copyright (c) 2009 Gilles Chehade <gilles@openbsd.org> @@ -151,9 +151,8 @@ bounce_session_switch(struct smtpd *env, FILE *fp, enum session_state *state, ch fprintf(fp, "\r\n"); fprintf(fp, "Below is a copy of the original message:\r\n\r\n"); - if (! file_copy(fp, srcfp, NULL, 0, 1)) { + if (! file_copy(fp, srcfp, NULL, 0, 1)) return 0; - } fprintf(fp, ".\r\n"); |