aboutsummaryrefslogtreecommitdiffstats
path: root/fetchmail.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2001-07-25 07:18:36 +0000
committerEric S. Raymond <esr@thyrsus.com>2001-07-25 07:18:36 +0000
commit3d0d161fa09f54838333bc8610f70110015725b0 (patch)
treef8311254fef9812232cb937cc95de40923b1fa82 /fetchmail.c
parenta4814f15939f2648b39270d3f7fb53c053ed0bb6 (diff)
downloadfetchmail-3d0d161fa09f54838333bc8610f70110015725b0.tar.gz
fetchmail-3d0d161fa09f54838333bc8610f70110015725b0.tar.bz2
fetchmail-3d0d161fa09f54838333bc8610f70110015725b0.zip
HMH's trivial fixes.
svn path=/trunk/; revision=3420
Diffstat (limited to 'fetchmail.c')
-rw-r--r--fetchmail.c15
1 files changed, 7 insertions, 8 deletions
diff --git a/fetchmail.c b/fetchmail.c
index 5b8c28ea..cba2c678 100644
--- a/fetchmail.c
+++ b/fetchmail.c
@@ -1322,12 +1322,10 @@ static void terminate_poll(int sig)
for (ctl = querylist; ctl; ctl = ctl->next)
if (ctl->smtp_socket != -1)
{
- /*
- * 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);
+ /* 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;
}
@@ -1395,7 +1393,7 @@ static const int autoprobe[] =
static int query_host(struct query *ctl)
/* perform fetch transaction with single host */
{
- int i, st;
+ int i, st = 0;
/*
* If we're syslogging the progress messages are automatically timestamped.
@@ -1414,7 +1412,8 @@ static int query_host(struct query *ctl)
for (i = 0; i < sizeof(autoprobe)/sizeof(autoprobe[0]); i++)
{
ctl->server.protocol = autoprobe[i];
- if ((st = query_host(ctl)) == PS_SUCCESS || st == PS_NOMAIL || st == PS_AUTHFAIL || st == PS_LOCKBUSY || st == PS_SMTP || st == PS_MAXFETCH)
+ st = query_host(ctl);
+ if (st == PS_SUCCESS || st == PS_NOMAIL || st == PS_AUTHFAIL || st == PS_LOCKBUSY || st == PS_SMTP || st == PS_MAXFETCH)
break;
}
ctl->server.protocol = P_AUTO;