aboutsummaryrefslogtreecommitdiffstats
path: root/driver.c
diff options
context:
space:
mode:
authorMatthias Andree <matthias.andree@gmx.de>2008-12-15 00:58:15 +0000
committerMatthias Andree <matthias.andree@gmx.de>2008-12-15 00:58:15 +0000
commit49918bae335a135d06d78244a86c941a3bd56bb5 (patch)
tree6602f952c843739c2fafe63880526180a4f08ead /driver.c
parentd49f3f08a387d8421c9090c7fb9fa4ca1b290d3f (diff)
downloadfetchmail-49918bae335a135d06d78244a86c941a3bd56bb5.tar.gz
fetchmail-49918bae335a135d06d78244a86c941a3bd56bb5.tar.bz2
fetchmail-49918bae335a135d06d78244a86c941a3bd56bb5.zip
Fix Debian Bug#508667: do not lose PS_MAXFETCH (13) exit status.
Reported by Michelle Konzack. svn path=/branches/BRANCH_6-3/; revision=5255
Diffstat (limited to 'driver.c')
-rw-r--r--driver.c6
1 files changed, 4 insertions, 2 deletions
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)