diff options
author | Eric S. Raymond <esr@thyrsus.com> | 1997-04-02 18:22:00 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 1997-04-02 18:22:00 +0000 |
commit | 68e42bf460bc26cd5e0138e1371479fc4aebc43a (patch) | |
tree | cef66f07f45487ae01781703ec1b92c291395822 /driver.c | |
parent | 69033375d8c01856b6a92652518356bab03e44f1 (diff) | |
download | fetchmail-68e42bf460bc26cd5e0138e1371479fc4aebc43a.tar.gz fetchmail-68e42bf460bc26cd5e0138e1371479fc4aebc43a.tar.bz2 fetchmail-68e42bf460bc26cd5e0138e1371479fc4aebc43a.zip |
Fix coding error in hunt-list handling.
svn path=/trunk/; revision=944
Diffstat (limited to 'driver.c')
-rw-r--r-- | driver.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -366,7 +366,6 @@ static FILE *smtp_open(struct query *ctl) /* run down the SMTP hunt list looking for a server that's up */ for (idp = ctl->smtphunt; idp; idp = idp->next) { - /* * RFC 1123 requires that the domain name in HELO address is a * "valid principal domain name" for the client host. We @@ -382,7 +381,7 @@ static FILE *smtp_open(struct query *ctl) if (ctl->smtp_sockfp == (FILE *)NULL) { if ((ctl->smtp_sockfp = SockOpen(idp->id,SMTP_PORT))==(FILE *)NULL) - return((FILE *)NULL); + continue; else if (SMTP_ok(ctl->smtp_sockfp) != SM_OK || SMTP_ehlo(ctl->smtp_sockfp, ctl->server.names->id, @@ -406,7 +405,7 @@ static FILE *smtp_open(struct query *ctl) if (ctl->smtp_sockfp == (FILE *)NULL) { if ((ctl->smtp_sockfp = SockOpen(idp->id,SMTP_PORT))==(FILE *)NULL) - return((FILE *)NULL); + continue; else if (SMTP_ok(ctl->smtp_sockfp) != SM_OK || SMTP_helo(ctl->smtp_sockfp, ctl->server.names->id) != SM_OK) { |