dovecot-2.0: Another crashfix when not using attachment storage.

dovecot at dovecot.org dovecot at dovecot.org
Sat Oct 2 14:33:56 EEST 2010


details:   http://hg.dovecot.org/dovecot-2.0/rev/da0137a33a1f
changeset: 12245:da0137a33a1f
user:      Timo Sirainen <tss at iki.fi>
date:      Fri Aug 13 17:16:06 2010 +0100
description:
Another crashfix when not using attachment storage.

diffstat:

 src/lib-storage/index/index-attachment.c |  3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diffs (13 lines):

diff -r 09e9c478b4f5 -r da0137a33a1f src/lib-storage/index/index-attachment.c
--- a/src/lib-storage/index/index-attachment.c	Fri Aug 13 17:11:04 2010 +0100
+++ b/src/lib-storage/index/index-attachment.c	Fri Aug 13 17:16:06 2010 +0100
@@ -388,7 +388,8 @@
 
 void index_attachment_save_free(struct mail_save_context *ctx)
 {
-	pool_unref(&ctx->attach->pool);
+	if (ctx->attach != NULL)
+		pool_unref(&ctx->attach->pool);
 }
 
 const ARRAY_TYPE(mail_attachment_extref) *


More information about the dovecot-cvs mailing list