aboutsummaryrefslogtreecommitdiffstats
path: root/driver.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1996-10-19 19:03:31 +0000
committerEric S. Raymond <esr@thyrsus.com>1996-10-19 19:03:31 +0000
commit07513709eed70fe7fcf7361eaf17640ed74683bf (patch)
treeab22ca5334e422d176327e5162c7390dc3c369aa /driver.c
parent5bd3f8287149511024b95c01fb4212e60ec6fe13 (diff)
downloadfetchmail-07513709eed70fe7fcf7361eaf17640ed74683bf.tar.gz
fetchmail-07513709eed70fe7fcf7361eaf17640ed74683bf.tar.bz2
fetchmail-07513709eed70fe7fcf7361eaf17640ed74683bf.zip
Avoid the socket-exhaustion bug.
svn path=/trunk/; revision=354
Diffstat (limited to 'driver.c')
-rw-r--r--driver.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/driver.c b/driver.c
index 2436cc78..a10867cc 100644
--- a/driver.c
+++ b/driver.c
@@ -624,8 +624,8 @@ struct method *proto; /* protocol method table */
else
{
fprintf(stderr, "%d message%s", count, count > 1 ? "s" : "");
- if (new != -1)
- fprintf(stderr, " (%d new)", new);
+ if (new != -1 && (count - new) > 0)
+ fprintf(stderr, " (%d seen)", count-new);
fprintf(stderr,
" from %s for %s@%s.\n",
queryctl->remotename,