aboutsummaryrefslogtreecommitdiffstats
path: root/antispam-storage-1.1.c
diff options
context:
space:
mode:
authorJohannes Berg <johannes@sipsolutions.net>2009-02-23 17:42:19 -0800
committerJohannes Berg <johannes@sipsolutions.net>2009-02-23 17:42:19 -0800
commit2d186fa9ad2d6cad065fabf65048edd3ce82f6df (patch)
treef580cbb545624c06deb5b7a88c37993848ce7754 /antispam-storage-1.1.c
parent28075fabec0dad462804ffe274b4eb2524c8d405 (diff)
downloaddovecot-antispam-2d186fa9ad2d6cad065fabf65048edd3ce82f6df.tar.gz
dovecot-antispam-2d186fa9ad2d6cad065fabf65048edd3ce82f6df.tar.xz
dovecot-antispam-2d186fa9ad2d6cad065fabf65048edd3ce82f6df.zip
fix dest_mail assignment bug
inspired by patch from Stéphane Cottin <stephane.cottin@vixns.com>
Diffstat (limited to 'antispam-storage-1.1.c')
-rw-r--r--antispam-storage-1.1.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/antispam-storage-1.1.c b/antispam-storage-1.1.c
index 348ae9d..80c80e3 100644
--- a/antispam-storage-1.1.c
+++ b/antispam-storage-1.1.c
@@ -167,7 +167,8 @@ static int antispam_save_init(struct mailbox_transaction_context *t,
timezone_offset, from_envelope,
input, dest_mail, ctx_r);
- (*ctx_r)->dest_mail = dest_mail;
+ if (ret >= 0)
+ (*ctx_r)->dest_mail = dest_mail;
return ret;
}