aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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);
}