dovecot-2.2: lib-storage: Make sure a save context doesn't leak ...
dovecot at dovecot.org
dovecot at dovecot.org
Thu Aug 30 22:05:17 EEST 2012
details: http://hg.dovecot.org/dovecot-2.2/rev/7bdbca7b0913
changeset: 14990:7bdbca7b0913
user: Timo Sirainen <tss at iki.fi>
date: Thu Aug 23 11:56:56 2012 +0300
description:
lib-storage: Make sure a save context doesn't leak metadata to the next save.
diffstat:
src/lib-storage/index/index-storage.c | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
diffs (18 lines):
diff -r 3765e8948f1c -r 7bdbca7b0913 src/lib-storage/index/index-storage.c
--- a/src/lib-storage/index/index-storage.c Wed Aug 22 17:42:06 2012 +0300
+++ b/src/lib-storage/index/index-storage.c Thu Aug 23 11:56:56 2012 +0300
@@ -616,6 +616,14 @@
i_free_and_null(ctx->guid);
i_free_and_null(ctx->pop3_uidl);
index_attachment_save_free(ctx);
+
+ ctx->flags = 0;
+ ctx->keywords = NULL;
+ ctx->min_modseq = 0;
+ ctx->received_date = ctx->save_date = 0;
+ ctx->received_tz_offset = 0;
+ ctx->uid = 0;
+ ctx->pop3_order = 0;
}
static void
More information about the dovecot-cvs
mailing list