aboutsummaryrefslogtreecommitdiffstats
path: root/sink.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2001-06-20 05:02:11 +0000
committerEric S. Raymond <esr@thyrsus.com>2001-06-20 05:02:11 +0000
commit327eb432aa6884bf3bac6ef0dd6c63e0dc5198f2 (patch)
treea478a8d56ceaa437a8ed7ed99843ecff9b25e0b7 /sink.c
parente95b8d68642cbd3b9a10509547e706db85a21883 (diff)
downloadfetchmail-327eb432aa6884bf3bac6ef0dd6c63e0dc5198f2.tar.gz
fetchmail-327eb432aa6884bf3bac6ef0dd6c63e0dc5198f2.tar.bz2
fetchmail-327eb432aa6884bf3bac6ef0dd6c63e0dc5198f2.zip
Miscellaneous bug fixes.
svn path=/trunk/; revision=3361
Diffstat (limited to 'sink.c')
-rw-r--r--sink.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sink.c b/sink.c
index fb671b6e..4bf5fd9c 100644
--- a/sink.c
+++ b/sink.c
@@ -938,7 +938,7 @@ int open_sink(struct query *ctl, struct msgblk *msg,
void release_sink(struct query *ctl)
/* release the per-message output sink, whether it's a pipe or SMTP socket */
{
- if (ctl->bsmtp)
+ if (ctl->bsmtp && sinkfp)
fclose(sinkfp);
else if (ctl->mda)
{
@@ -984,7 +984,7 @@ int close_sink(struct query *ctl, struct msgblk *msg, flag forward)
return(FALSE);
}
}
- else if (ctl->bsmtp)
+ else if (ctl->bsmtp && sinkfp)
{
int error;