Mailing List Archive

svn commit: rev 6671 - incubator/spamassassin/trunk/spamc
Author: felicity
Date: Sun Feb 15 17:07:10 2004
New Revision: 6671

Modified:
incubator/spamassassin/trunk/spamc/spamc.c
Log:
bug 2840: if spamc was passed '-d non.existant.host', the message wouldn't be sent back out to STDOUT as it does with a host that exists but is not able to be contacted.

Modified: incubator/spamassassin/trunk/spamc/spamc.c
==============================================================================
--- incubator/spamassassin/trunk/spamc/spamc.c (original)
+++ incubator/spamassassin/trunk/spamc/spamc.c Sun Feb 15 17:07:10 2004
@@ -301,7 +301,7 @@
const char *username = NULL;
int ret;
struct message m;
- int out_fd;
+ int out_fd = -1;
struct transport trans;
int result;

@@ -381,8 +381,6 @@
setmode(STDOUT_FILENO, O_BINARY);
#endif
if ((ret = transport_setup(&trans, flags)) == EX_OK) {
- out_fd = -1;
-
ret = message_read(STDIN_FILENO, flags, &m);
if (ret == EX_OK) {
ret = message_filter(&trans, username, flags, &m);