diff options
author | Johannes Berg <johannes@sipsolutions.net> | 2009-02-23 17:42:19 -0800 |
---|---|---|
committer | Johannes Berg <johannes@sipsolutions.net> | 2009-02-23 17:42:19 -0800 |
commit | 2d186fa9ad2d6cad065fabf65048edd3ce82f6df (patch) | |
tree | f580cbb545624c06deb5b7a88c37993848ce7754 | |
parent | 28075fabec0dad462804ffe274b4eb2524c8d405 (diff) | |
download | dovecot-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>
-rw-r--r-- | antispam-storage-1.1.c | 3 |
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; } |