aboutsummaryrefslogtreecommitdiffstats
path: root/fetchmail.c
diff options
context:
space:
mode:
Diffstat (limited to 'fetchmail.c')
-rw-r--r--fetchmail.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fetchmail.c b/fetchmail.c
index 3cfe3466..b10da556 100644
--- a/fetchmail.c
+++ b/fetchmail.c
@@ -357,6 +357,7 @@ int main (int argc, char **argv)
for (ctl = querylist; ctl; ctl = ctl->next)
if (ctl->smtp_sockfp)
{
+ SMTP_quit(ctl->smtp_sockfp);
fclose(ctl->smtp_sockfp);
ctl->smtp_sockfp = (FILE *)NULL;
}