aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1997-09-27 15:30:44 +0000
committerEric S. Raymond <esr@thyrsus.com>1997-09-27 15:30:44 +0000
commitd66f7cd1467adb824d7a555dd93c01ed4c06b407 (patch)
tree32572c6d121fbd29225295154d7b237eacbc590e
parent7159849665ddb6012c23f7be1c111378034479a9 (diff)
downloadfetchmail-d66f7cd1467adb824d7a555dd93c01ed4c06b407.tar.gz
fetchmail-d66f7cd1467adb824d7a555dd93c01ed4c06b407.tar.bz2
fetchmail-d66f7cd1467adb824d7a555dd93c01ed4c06b407.zip
Try to eliminate some spurious error numbers.
svn path=/trunk/; revision=1423
-rw-r--r--driver.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/driver.c b/driver.c
index cf6be546..a905a481 100644
--- a/driver.c
+++ b/driver.c
@@ -394,6 +394,8 @@ static int smtp_open(struct query *ctl)
*/
struct idlist *idp;
+ errno = 0;
+
/* run down the SMTP hunt list looking for a server that's up */
for (idp = ctl->smtphunt; idp; idp = idp->next)
{
@@ -891,9 +893,9 @@ int num; /* index of message */
/* build a connection to the SMTP listener */
if ((smtp_open(ctl) == -1))
{
- free_str_list(&xmit_names);
error(0, errno, "SMTP connect to %s failed",
ctl->smtphost ? ctl->smtphost : "localhost");
+ free_str_list(&xmit_names);
return(PS_SMTP);
}