aboutsummaryrefslogtreecommitdiffstats
path: root/fetchmail.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2002-02-01 02:22:24 +0000
committerEric S. Raymond <esr@thyrsus.com>2002-02-01 02:22:24 +0000
commit5ef9c343fc4b219f01498be7c88e1fdae67c35ee (patch)
tree1a2beb0020814595d15b46d10f46fd735efc2dd4 /fetchmail.c
parentc260a67eb2a4a93567a7a975b6ebe92204fc9b49 (diff)
downloadfetchmail-5ef9c343fc4b219f01498be7c88e1fdae67c35ee.tar.gz
fetchmail-5ef9c343fc4b219f01498be7c88e1fdae67c35ee.tar.bz2
fetchmail-5ef9c343fc4b219f01498be7c88e1fdae67c35ee.zip
Sunil Shetye's fixews for IMAP and SMTP edge cases.
svn path=/trunk/; revision=3570
Diffstat (limited to 'fetchmail.c')
-rw-r--r--fetchmail.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/fetchmail.c b/fetchmail.c
index 4c07dee6..d7dbf59c 100644
--- a/fetchmail.c
+++ b/fetchmail.c
@@ -1204,10 +1204,7 @@ static void terminate_poll(int sig)
{
/* don't send QUIT for ODMR case because we're acting
as a proxy between the SMTP server and client. */
- if (ctl->server.protocol != P_ODMR)
- SMTP_quit(ctl->smtp_socket);
- SockClose(ctl->smtp_socket);
- ctl->smtp_socket = -1;
+ smtp_close(ctl, ctl->server.protocol != P_ODMR);
}
}