aboutsummaryrefslogtreecommitdiffstats
path: root/fetchmail.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1997-01-17 04:16:25 +0000
committerEric S. Raymond <esr@thyrsus.com>1997-01-17 04:16:25 +0000
commitd2c06b208964f374d9515667afa0dbcc129675d4 (patch)
tree9809ddbb9d358ad18da1307d3dc1b9cdaefa51d0 /fetchmail.c
parent03f13c24a8a9ec87db38b4f319d46dd88e64a508 (diff)
downloadfetchmail-d2c06b208964f374d9515667afa0dbcc129675d4.tar.gz
fetchmail-d2c06b208964f374d9515667afa0dbcc129675d4.tar.bz2
fetchmail-d2c06b208964f374d9515667afa0dbcc129675d4.zip
Fix the second incanation of the HELO bug.
svn path=/trunk/; revision=782
Diffstat (limited to 'fetchmail.c')
-rw-r--r--fetchmail.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/fetchmail.c b/fetchmail.c
index 1f090146..b621c056 100644
--- a/fetchmail.c
+++ b/fetchmail.c
@@ -586,10 +586,10 @@ static int load_params(int argc, char **argv, int optind)
/*
* Assign SMTP leaders. We want to allow all query blocks
- * sharing the same SMTP host to use the same SMTP connection.
- * To accomplish this, we initialize each query block's leader
- * field to point to the first block in the list with a matching
- * SMTP host.
+ * sharing the same server/SMTP-host pair to use the same
+ * SMTP connection. To accomplish this, we initialize
+ * each query block's leader field to point to the first
+ * block in the list with a matching server/SMTP-host pair.
*
* In the typical case, there will be only one SMTP host (the
* client machine) and thus just one SMTP leader (and one listener
@@ -599,7 +599,8 @@ static int load_params(int argc, char **argv, int optind)
{
ctl->smtp_sockfp = (FILE *)NULL;
for (mp = querylist; mp && mp != ctl; mp = mp->next)
- if (strcmp(mp->smtphost, ctl->smtphost) == 0)
+ if (!strcmp(mp->server.names->id, ctl->server.names->id)
+ && !strcmp(mp->smtphost, ctl->smtphost))
{
ctl->lead_smtp = mp->lead_smtp;
goto no_new_leader;