From b3d6e03b3039b2a85eceaab83855db5ee859f665 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Mon, 7 Oct 1996 00:29:47 +0000 Subject: Cleaner termination. svn path=/trunk/; revision=237 --- driver.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'driver.c') diff --git a/driver.c b/driver.c index 86211d8b..17b852d0 100644 --- a/driver.c +++ b/driver.c @@ -676,9 +676,11 @@ cleanUp: #endif /* HAVE_RRESVPORT_H */ closeUp: - SMTP_quit(mboxfd); - close(mboxfd); - + if (mboxfd != -1) + { + SMTP_quit(mboxfd); + close(mboxfd); + } return(ok); } -- cgit v1.2.3