]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-storage: Fixed handling mail_allocated hook.
authorTimo Sirainen <tss@iki.fi>
Mon, 14 Jun 2010 15:07:44 +0000 (16:07 +0100)
committerTimo Sirainen <tss@iki.fi>
Mon, 14 Jun 2010 15:07:44 +0000 (16:07 +0100)
--HG--
branch : HEAD

src/lib-storage/mail-storage-hooks.c

index 5b425d26ffd0a9d71a6d0b0ae34a7324b2b6aa44..2ab0968a2ae09a776a9f400a44ce431b11570dd0 100644 (file)
@@ -273,6 +273,7 @@ void hook_mail_allocated(struct mail *mail)
        struct mail_private *pmail = (struct mail_private *)mail;
        struct mail_vfuncs mask, *prev_vlast = NULL;
 
+       memset(&mask, 0, sizeof(mask));
        pmail->vlast = &pmail->v;
        array_foreach(&mail->box->storage->user->hooks, hooks) {
                if ((*hooks)->mail_allocated != NULL) {