From d66f7cd1467adb824d7a555dd93c01ed4c06b407 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Sat, 27 Sep 1997 15:30:44 +0000 Subject: Try to eliminate some spurious error numbers. svn path=/trunk/; revision=1423 --- driver.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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); } -- cgit v1.2.3