diff options
author | Matthias Andree <matthias.andree@gmx.de> | 2008-12-15 00:58:15 +0000 |
---|---|---|
committer | Matthias Andree <matthias.andree@gmx.de> | 2008-12-15 00:58:15 +0000 |
commit | 49918bae335a135d06d78244a86c941a3bd56bb5 (patch) | |
tree | 6602f952c843739c2fafe63880526180a4f08ead /driver.c | |
parent | d49f3f08a387d8421c9090c7fb9fa4ca1b290d3f (diff) | |
download | fetchmail-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.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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) |