From 327eb432aa6884bf3bac6ef0dd6c63e0dc5198f2 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Wed, 20 Jun 2001 05:02:11 +0000 Subject: Miscellaneous bug fixes. svn path=/trunk/; revision=3361 --- sink.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sink.c') 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; -- cgit v1.2.3