From: Timo Sirainen Date: Sun, 4 Apr 2010 22:18:51 +0000 (+0300) Subject: mbox: Potential crashfix if some plugin enabled sync_notify (e.g. quota). X-Git-Tag: 2.0.beta5~231 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7e6749d69b9d3f87e598b8dc3346b82f3cb3b8e7;p=thirdparty%2Fdovecot%2Fcore.git mbox: Potential crashfix if some plugin enabled sync_notify (e.g. quota). --HG-- branch : HEAD --- diff --git a/src/lib-storage/index/mbox/mbox-sync.c b/src/lib-storage/index/mbox/mbox-sync.c index 42d7d70120..2c26de9149 100644 --- a/src/lib-storage/index/mbox/mbox-sync.c +++ b/src/lib-storage/index/mbox/mbox-sync.c @@ -397,7 +397,7 @@ static void mbox_sync_update_flags(struct mbox_sync_mail_context *mail_ctx, MAIL_INDEX_MAIL_FLAG_DIRTY; } if (sync_type != 0 && box->v.sync_notify != NULL) { - box->v.sync_notify(box, rec->uid, + box->v.sync_notify(box, mail_ctx->mail.uid, index_sync_type_convert(sync_type)); } }