dovecot-2.2: cassandra: Don't access freed memory when doing an ...

dovecot at dovecot.org dovecot at dovecot.org
Thu Jun 11 12:31:15 UTC 2015


details:   http://hg.dovecot.org/dovecot-2.2/rev/247c6ae2eae4
changeset: 18839:247c6ae2eae4
user:      Timo Sirainen <tss at iki.fi>
date:      Thu Jun 11 15:28:05 2015 +0300
description:
cassandra: Don't access freed memory when doing an assert-check.

diffstat:

 src/lib-sql/driver-cassandra.c |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (13 lines):

diff -r cf05939c3d09 -r 247c6ae2eae4 src/lib-sql/driver-cassandra.c
--- a/src/lib-sql/driver-cassandra.c	Thu Jun 11 15:19:53 2015 +0300
+++ b/src/lib-sql/driver-cassandra.c	Thu Jun 11 15:28:05 2015 +0300
@@ -941,8 +941,8 @@
 		driver_cassandra_try_commit_s(ctx, error_r);
 
 	i_assert(ctx->refcount == 1);
+	i_assert((*error_r != NULL) == ctx->failed);
 	driver_cassandra_transaction_unref(ctx);
-	i_assert((*error_r != NULL) == ctx->failed);
 	return *error_r == NULL ? 0 : -1;
 }
 


More information about the dovecot-cvs mailing list