diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2002-10-31 13:38:29 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2002-10-31 13:38:29 +0000 |
commit | caef674e29106c14aae5e77d82e6c3ab052d3d3b (patch) | |
tree | 73417ae78d8a4ac3930b163820d4f243596bf202 /driver.c | |
parent | 8cf3fdbd139435d0696e7c16f967bbeb1ab4d701 (diff) | |
download | fetchmail-caef674e29106c14aae5e77d82e6c3ab052d3d3b.tar.gz fetchmail-caef674e29106c14aae5e77d82e6c3ab052d3d3b.tar.bz2 fetchmail-caef674e29106c14aae5e77d82e6c3ab052d3d3b.zip |
Sunil Shetye's minor fixes.
svn path=/trunk/; revision=3762
Diffstat (limited to 'driver.c')
-rw-r--r-- | driver.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -1114,8 +1114,8 @@ const int maxfetch; /* maximum number of messages to fetch */ */ if (run.poll_interval && !ctl->wehavesentauthnote - && ((ctl->wehaveauthed && ++ctl->authfailcount == 10) - || ++ctl->authfailcount == 3) + && ((ctl->wehaveauthed && ++ctl->authfailcount >= 10) + || (!ctl->wehaveauthed && ++ctl->authfailcount >= 3)) && !open_warning_by_mail(ctl, (struct msgblk *)NULL)) { ctl->wehavesentauthnote = 1; @@ -1509,6 +1509,7 @@ closeUp: err = PS_SYNTAX; } + set_timeout(0); /* cancel any pending alarm */ signal(SIGALRM, alrmsave); signal(SIGPIPE, pipesave); return(err); |