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

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


details:   http://hg.dovecot.org/dovecot-1.1/rev/76c363b717a1
changeset: 8272:76c363b717a1
user:      Timo Sirainen <tss at iki.fi>
date:      Sun May 17 17:31:40 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 b9c3205084a3 -r 76c363b717a1 src/lib-sql/sql-pool.c
--- a/src/lib-sql/sql-pool.c	Fri May 15 13:06:15 2009 -0400
+++ b/src/lib-sql/sql-pool.c	Sun May 17 17:31:40 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