dovecot-2.0: lib-storage: Fixed handling mail_allocated hook.

dovecot at dovecot.org dovecot at dovecot.org
Mon Jun 14 18:07:48 EEST 2010


details:   http://hg.dovecot.org/dovecot-2.0/rev/07a7d352af66
changeset: 11541:07a7d352af66
user:      Timo Sirainen <tss at iki.fi>
date:      Mon Jun 14 16:07:44 2010 +0100
description:
lib-storage: Fixed handling mail_allocated hook.

diffstat:

 src/lib-storage/mail-storage-hooks.c |  1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diffs (11 lines):

diff -r 88b6665b48da -r 07a7d352af66 src/lib-storage/mail-storage-hooks.c
--- a/src/lib-storage/mail-storage-hooks.c	Mon Jun 14 15:55:23 2010 +0100
+++ b/src/lib-storage/mail-storage-hooks.c	Mon Jun 14 16:07:44 2010 +0100
@@ -273,6 +273,7 @@
 	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) {


More information about the dovecot-cvs mailing list