Mercurial > dovecot > core-2.2
changeset 18839:247c6ae2eae4
cassandra: Don't access freed memory when doing an assert-check.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Thu, 11 Jun 2015 15:28:05 +0300 |
parents | cf05939c3d09 |
children | 34943b67e01f |
files | src/lib-sql/driver-cassandra.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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; }