aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--driver.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/driver.c b/driver.c
index 910bf9fe..0fd2b145 100644
--- a/driver.c
+++ b/driver.c
@@ -705,8 +705,11 @@ char *realname; /* real name of host */
strcat(errmsg, "\n");
- if (sinkfp)
- fputs(errmsg, sinkfp);
+ /* ship out the error line */
+ if (ctl->mda)
+ fwrite(errmsg, 1, strlen(errmsg), sinkfp);
+ else if (sinkfp)
+ SockWrite(errmsg, 1, strlen(errmsg), sinkfp);
}
free_str_list(&xmit_names);