From 68e42bf460bc26cd5e0138e1371479fc4aebc43a Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Wed, 2 Apr 1997 18:22:00 +0000 Subject: Fix coding error in hunt-list handling. svn path=/trunk/; revision=944 --- driver.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'driver.c') diff --git a/driver.c b/driver.c index 6e35ca58..765d2407 100644 --- a/driver.c +++ b/driver.c @@ -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) { -- cgit v1.2.3