dovecot-2.2: dsync: Fixed crashes at deinit when -r rawlog param...

dovecot at dovecot.org dovecot at dovecot.org
Sat Oct 26 18:31:29 EEST 2013


details:   http://hg.dovecot.org/dovecot-2.2/rev/d66b4b1b343a
changeset: 16884:d66b4b1b343a
user:      Timo Sirainen <tss at iki.fi>
date:      Sat Oct 26 18:31:16 2013 +0300
description:
dsync: Fixed crashes at deinit when -r rawlog parameter was used.

diffstat:

 src/doveadm/dsync/doveadm-dsync.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 1d222bd0a49c -r d66b4b1b343a src/doveadm/dsync/doveadm-dsync.c
--- a/src/doveadm/dsync/doveadm-dsync.c	Sat Oct 26 18:07:45 2013 +0300
+++ b/src/doveadm/dsync/doveadm-dsync.c	Sat Oct 26 18:31:16 2013 +0300
@@ -455,12 +455,12 @@
 		ctx->input = i_stream_create_fd(ctx->fd_in, (size_t)-1, FALSE);
 		ctx->output = o_stream_create_fd(ctx->fd_out, (size_t)-1, FALSE);
 	}
-	i_stream_ref(ctx->input);
-	o_stream_ref(ctx->output);
 	if (ctx->rawlog_path != NULL) {
 		iostream_rawlog_create_path(ctx->rawlog_path,
 					    &ctx->input, &ctx->output);
 	}
+	i_stream_ref(ctx->input);
+	o_stream_ref(ctx->output);
 	return dsync_ibc_init_stream(ctx->input, ctx->output,
 				     name, temp_prefix);
 }


More information about the dovecot-cvs mailing list