dovecot-2.0: Dropping connections from sql connection pool could...

dovecot at dovecot.org dovecot at dovecot.org
Mon May 18 00:31:11 EEST 2009


details:   http://hg.dovecot.org/dovecot-2.0/rev/4ae7728a99f0
changeset: 9310:4ae7728a99f0
user:      Timo Sirainen <tss at iki.fi>
date:      Sun May 17 17:30:58 2009 -0400
description:
Dropping connections from sql connection pool could have crashed.

diffstat:

1 file changed, 1 insertion(+), 1 deletion(-)
src/lib-sql/sql-pool.c |    2 +-

diffs (12 lines):

diff -r 78bf2b7276b0 -r 4ae7728a99f0 src/lib-sql/sql-pool.c
--- a/src/lib-sql/sql-pool.c	Sun May 17 17:15:01 2009 -0400
+++ b/src/lib-sql/sql-pool.c	Sun May 17 17:30:58 2009 -0400
@@ -61,7 +61,7 @@ static void sql_pool_unlink(struct sql_p
 	if (ctx->next == NULL)
 		ctx->pool->unused_head = ctx->prev;
 	else {
-		next_ctx = SQL_POOL_CONTEXT(ctx->prev);
+		next_ctx = SQL_POOL_CONTEXT(ctx->next);
 		next_ctx->prev = ctx->prev;
 	}
 	ctx->pool->unused_count--;


More information about the dovecot-cvs mailing list