aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--NEWS4
-rw-r--r--driver.c6
2 files changed, 8 insertions, 2 deletions
diff --git a/NEWS b/NEWS
index ebd3beb8..db7497cd 100644
--- a/NEWS
+++ b/NEWS
@@ -44,6 +44,10 @@ be removed from a 6.4.0 or newer release.)
fetchmail 6.3.10 (not yet released):
+# BUGFIXES
+* Do not lose PS_MAXFETCH (13) exit status when hitting maxpoll. Reported by
+ Michelle Konzack, Debian Bug#508667.
+
# TRANSLATION UPDATES AND ADDITIONS (ordered by language name):
* [it] Italian (Vincenzo Campanella)
diff --git a/driver.c b/driver.c
index 675720a8..14cf8700 100644
--- a/driver.c
+++ b/driver.c
@@ -1435,9 +1435,11 @@ is restored."));
/* end-of-mailbox processing before we repoll or switch to another one */
if (ctl->server.base_protocol->end_mailbox_poll)
{
- err = (ctl->server.base_protocol->end_mailbox_poll)(mailserver_socket, ctl);
- if (err)
+ tmperr = (ctl->server.base_protocol->end_mailbox_poll)(mailserver_socket, ctl);
+ if (tmperr) {
+ err = tmperr;
goto cleanUp;
+ }
}
/* Return now if we have reached the fetchlimit */
if (maxfetch && maxfetch <= fetches)