diff options
author | Johannes Berg <johannes@sipsolutions.net> | 2007-09-30 16:14:21 +0200 |
---|---|---|
committer | Johannes Berg <johannes@sipsolutions.net> | 2007-09-30 16:14:21 +0200 |
commit | 962f82ed3028cd8de2c19f4c9baf4299c15ea4e4 (patch) | |
tree | dccdf2071e262f390f5c9ed6b205dfc7cd1332f3 /plugin.c | |
parent | f07994f4ba5f6496b9d5a20e56834a89c86fe179 (diff) | |
download | dovecot-antispam-962f82ed3028cd8de2c19f4c9baf4299c15ea4e4.tar.gz dovecot-antispam-962f82ed3028cd8de2c19f4c9baf4299c15ea4e4.tar.xz dovecot-antispam-962f82ed3028cd8de2c19f4c9baf4299c15ea4e4.zip |
fix remaining error handling bugs
Diffstat (limited to '')
-rw-r--r-- | plugin.c | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -163,10 +163,8 @@ static int fetch_and_copy(struct client *client, /* MODIFIED: pass to backend */ #ifdef BACKEND_WANTS_SIGNATURE /* got all signatures now, pass them to backend if no errors */ - if (ret > 0) { - if (backend(pool, src_spam, siglist)) - ret = BACKEND_FAILURE; - } + if (ret > 0 && !backend(pool, src_spam, siglist)) + ret = BACKEND_FAILURE; #else #error Not implemented #endif |