aboutsummaryrefslogtreecommitdiffstats
path: root/plugin.c
diff options
context:
space:
mode:
authorJohannes Berg <johannes@sipsolutions.net>2007-09-30 16:14:21 +0200
committerJohannes Berg <johannes@sipsolutions.net>2007-09-30 16:14:21 +0200
commit962f82ed3028cd8de2c19f4c9baf4299c15ea4e4 (patch)
treedccdf2071e262f390f5c9ed6b205dfc7cd1332f3 /plugin.c
parentf07994f4ba5f6496b9d5a20e56834a89c86fe179 (diff)
downloaddovecot-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.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/plugin.c b/plugin.c
index fe98e85..40c8ad8 100644
--- a/plugin.c
+++ b/plugin.c
@@ -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