aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1996-10-07 00:29:47 +0000
committerEric S. Raymond <esr@thyrsus.com>1996-10-07 00:29:47 +0000
commitb3d6e03b3039b2a85eceaab83855db5ee859f665 (patch)
tree7f4bd70a859e3d7ff129a3b5f79c83dc19f0d007
parentf6f4275a05a9206cf5a1d48f6ffee13db310f4d8 (diff)
downloadfetchmail-b3d6e03b3039b2a85eceaab83855db5ee859f665.tar.gz
fetchmail-b3d6e03b3039b2a85eceaab83855db5ee859f665.tar.bz2
fetchmail-b3d6e03b3039b2a85eceaab83855db5ee859f665.zip
Cleaner termination.
svn path=/trunk/; revision=237
-rw-r--r--driver.c8
1 files changed, 5 insertions, 3 deletions
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);
}