diff options
Diffstat (limited to 'contrib/sendmail/src/mci.c')
-rw-r--r-- | contrib/sendmail/src/mci.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/contrib/sendmail/src/mci.c b/contrib/sendmail/src/mci.c index ce9422c..a819bbb 100644 --- a/contrib/sendmail/src/mci.c +++ b/contrib/sendmail/src/mci.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 1998-2001 Sendmail, Inc. and its suppliers. + * Copyright (c) 1998-2002 Sendmail, Inc. and its suppliers. * All rights reserved. * Copyright (c) 1995-1997 Eric P. Allman. All rights reserved. * Copyright (c) 1988, 1993 @@ -13,7 +13,7 @@ #include <sendmail.h> -SM_RCSID("@(#)$Id: mci.c,v 8.202 2001/11/05 22:12:17 ca Exp $") +SM_RCSID("@(#)$Id: mci.c,v 8.204 2002/02/22 18:24:57 ca Exp $") #if NETINET || NETINET6 # include <arpa/inet.h> @@ -157,7 +157,7 @@ mci_scan(savemci) bestmci = &MciCache[i]; continue; } - if ((mci->mci_lastuse + MciCacheTimeout < now || + if ((mci->mci_lastuse + MciCacheTimeout <= now || (mci->mci_mailer != NULL && mci->mci_mailer->m_maxdeliveries > 0 && mci->mci_deliveries + 1 >= mci->mci_mailer->m_maxdeliveries))&& @@ -388,7 +388,7 @@ mci_get(host, m) time_t now = curtime(); /* if this info is stale, ignore it */ - if (now > mci->mci_lastuse + MciInfoTimeout) + if (mci->mci_lastuse + MciInfoTimeout <= now) { mci->mci_lastuse = now; mci->mci_errno = 0; @@ -510,7 +510,6 @@ static struct mcifbits MciFlags[] = { MCIF_SIZE, "SIZE" }, { MCIF_8BITMIME, "8BITMIME" }, { MCIF_7BIT, "7BIT" }, - { MCIF_MULTSTAT, "MULTSTAT" }, { MCIF_INHEADER, "INHEADER" }, { MCIF_CVT8TO7, "CVT8TO7" }, { MCIF_DSN, "DSN" }, @@ -1311,7 +1310,7 @@ mci_purge_persistent(pathname, hostname) pathname, sm_errstring(errno)); return ret; } - if (curtime() - statbuf.st_mtime < MciInfoTimeout) + if (curtime() - statbuf.st_mtime <= MciInfoTimeout) return 1; if (hostname != NULL) { |