diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2001-06-20 05:02:11 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2001-06-20 05:02:11 +0000 |
commit | 327eb432aa6884bf3bac6ef0dd6c63e0dc5198f2 (patch) | |
tree | a478a8d56ceaa437a8ed7ed99843ecff9b25e0b7 /sink.c | |
parent | e95b8d68642cbd3b9a10509547e706db85a21883 (diff) | |
download | fetchmail-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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; |