aboutsummaryrefslogtreecommitdiffstats
path: root/antispam-storage-1.1.c
diff options
context:
space:
mode:
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;
}